diff --git a/src/ride.c b/src/ride.c index bbf88144e4..43798a15db 100644 --- a/src/ride.c +++ b/src/ride.c @@ -427,13 +427,10 @@ rct_map_element *ride_find_track_gap(rct_map_element *startTrackElement, int *ou * * rct2: 0x006B4800 */ -void ride_construct_new(uint8 ah, uint8 al) +void ride_construct_new(int list_item) { int eax, ebx, ecx, edx, esi, edi, ebp; - edx = 0; - edx = ah; - edx << 8; //Set high byte - edx += al;//Set low byte + edx = list_item; eax = 0; ecx = 0; ebx = 1; diff --git a/src/ride.h b/src/ride.h index 3639d80577..0c452f956d 100644 --- a/src/ride.h +++ b/src/ride.h @@ -384,7 +384,7 @@ void ride_update_favourited_stat(); void ride_check_all_reachable(); rct_map_element *sub_6CAF80(int rideIndex, int *outX, int *outY); rct_map_element *ride_find_track_gap(rct_map_element *startTrackElement, int *outX, int *outY); -void ride_construct_new(uint8 ah, uint8 al); +void ride_construct_new(int list_item); int ride_try_construct(rct_map_element *trackMapElement); #endif diff --git a/src/window_new_ride.c b/src/window_new_ride.c index 9df4bdec1d..d63c5ef2c8 100644 --- a/src/window_new_ride.c +++ b/src/window_new_ride.c @@ -990,5 +990,5 @@ static void window_new_ride_select(rct_window *w) // Show ride construction window //RCT2_CALLPROC_X(0x006B4800, *((sint16*)&item), 0, 0, 0, 0, 0, 0); - ride_construct_new(item.type, item.entry_index); + ride_construct_new(*((sint16*)&item)); }