use RCT2_ADDRESS_TRACK_LIST

This commit is contained in:
Linus Unnebäck 2015-12-06 18:49:35 +01:00
parent bd82b7a297
commit 16e5ace672

View file

@ -847,9 +847,9 @@ static int get_num_track_designs(ride_list_item item)
{
track_load_list(item);
uint8 *trackDesignList = (uint8*)0x00F441EC;
char *trackDesignList = RCT2_ADDRESS(RCT2_ADDRESS_TRACK_LIST, char);
int count = 0;
while (*trackDesignList != 0 && trackDesignList < (uint8*)0x00F635EC) {
while (*trackDesignList != 0 && trackDesignList < (char*)0x00F635EC) {
trackDesignList += 128;
count++;
}
@ -936,7 +936,7 @@ static void window_new_ride_select(rct_window *w)
if (ride_type_has_flag(item.type, RIDE_TYPE_FLAG_HAS_TRACK)) {
track_load_list(item);
uint8 *trackDesignList = (uint8*)0x00F441EC;
char *trackDesignList = RCT2_ADDRESS(RCT2_ADDRESS_TRACK_LIST, char);
if (*trackDesignList != 0) {
window_track_list_open(item);
return;