use larger integers in ride/track.c

This commit is contained in:
Linus Unnebäck 2015-12-06 18:54:48 +01:00
parent 1d3cefe73d
commit 4bfbe27116
1 changed files with 4 additions and 4 deletions

View File

@ -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){