mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-26 04:12:07 -05:00
use RCT2_ADDRESS_TRACK_LIST
This commit is contained in:
parent
bd82b7a297
commit
16e5ace672
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue