diff --git a/src/windows/new_ride.c b/src/windows/new_ride.c index fc9d702cc6..8a7d7e8b18 100644 --- a/src/windows/new_ride.c +++ b/src/windows/new_ride.c @@ -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;