From 229dedbb64d44daf7dce59438244c24b1aa650a8 Mon Sep 17 00:00:00 2001 From: hexdec Date: Thu, 14 Aug 2014 00:07:47 +0200 Subject: [PATCH] Changed hardcode address to RCT2_ADDRESS_SPRITE_LIST. --- src/window_peep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/window_peep.c b/src/window_peep.c index 155e954a02..81fc75f571 100644 --- a/src/window_peep.c +++ b/src/window_peep.c @@ -177,7 +177,7 @@ void window_peep_open(rct_peep* peep){ void sub_6BED21(rct_window* w) { int eax = 0 | 0x80; - uint32 esi = 0x10E63BC + (w->number << 8); + uint32 esi = RCT2_ADDRESS_SPRITE_LIST + (w->number << 8); if (RCT2_GLOBAL(esi + 0x2F, uint8) == 2) { // Staff type? eax |= 0x20; @@ -209,7 +209,7 @@ void sub_6BED21(rct_window* w) } - if (a != 1) { + if (a == 0) { CF = w->disabled_widgets & (1 << 0xA); //bt dword ptr [esi+10h], 0Ah if (CF == 1) { RCT2_CALLFUNC_X(0x6EB13A, 0, 0, 0, 0, (int)w, 0, 0);