diff --git a/src/windows/ride_construction.c b/src/windows/ride_construction.c index 6e2965da92..05acbeca0a 100644 --- a/src/windows/ride_construction.c +++ b/src/windows/ride_construction.c @@ -78,7 +78,7 @@ static void* window_construction_events[] = { (void*)0x6C6E14, (void*)0x6C7934, (void*)0x6C6E6A, - window_construction_emptysub, + (void*)0x6C78CD, window_construction_emptysub, (void*)0x6C8374, window_construction_emptysub, @@ -110,8 +110,10 @@ static void* window_construction_events[] = { */ rct_window *window_construction_open() { - int eax, ebx, ecx, edx, esi, edi, ebp; - + //int eax, ebx, ecx, edx, esi, edi, ebp; + //RCT2_CALLFUNC_X(0x006CB481, &eax, &ebx, &ecx, &edx, &esi, &edi, &ebp); + //return (rct_window*)esi; + int ride_id = RCT2_GLOBAL(0xF440A7, uint8); sub_6b2fa9(ride_id); @@ -184,9 +186,6 @@ rct_window *window_construction_open() RCT2_GLOBAL(0x00F44159, uint8) = 0; RCT2_GLOBAL(0x00F4415C, uint8) = 0; return w; - - RCT2_CALLFUNC_X(0x006CB481, &eax, &ebx, &ecx, &edx, &esi, &edi, &ebp); - return (rct_window*)esi; } void window_construction_close(){