mirror of https://github.com/OpenRCT2/OpenRCT2.git
Merge pull request #2443 from LinusU/ride-track-fixes
use larger integers in ride/track.c
This commit is contained in:
commit
47e8c54b89
|
@ -339,7 +339,7 @@ static uint8* track_list_cache_load(int totalFiles)
|
|||
void track_list_populate(ride_list_item item, uint8* track_list_cache){
|
||||
uint8* track_pointer = track_list_cache;
|
||||
|
||||
uint8 cur_track_entry_index = 0;
|
||||
int cur_track_entry_index = 0;
|
||||
for (uint8 track_type = *track_pointer++; track_type != 0xFE;
|
||||
track_pointer += strlen((const char *)track_pointer) + 1,
|
||||
track_type = *track_pointer++){
|
||||
|
@ -376,7 +376,7 @@ void track_list_populate(ride_list_item item, uint8* track_list_cache){
|
|||
break;
|
||||
}
|
||||
|
||||
uint8 track_entry_index = 0;
|
||||
int track_entry_index = 0;
|
||||
uint8 isBelow = 0;
|
||||
for (; track_entry_index != cur_track_entry_index; track_entry_index++){
|
||||
if (strcicmp((const char *)track_pointer, &RCT2_ADDRESS(RCT2_ADDRESS_TRACK_LIST, const char)[track_entry_index * 128]) < 0){
|
||||
|
|
Loading…
Reference in New Issue