From 1c32a429c236781e970a5c06815f529919c3f432 Mon Sep 17 00:00:00 2001 From: Duncan Frost Date: Mon, 23 Feb 2015 17:58:22 +0000 Subject: [PATCH] Fix ghost entrances caused by tool_cancel not being called --- src/windows/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows/map.c b/src/windows/map.c index ca7e20f0eb..c7e389f1dc 100644 --- a/src/windows/map.c +++ b/src/windows/map.c @@ -200,7 +200,7 @@ static void window_map_close() rct2_free(RCT2_GLOBAL(RCT2_ADDRESS_MAP_IMAGE_DATA, uint32*)); if ((RCT2_GLOBAL(RCT2_ADDRESS_INPUT_FLAGS, uint32) & INPUT_FLAG_TOOL_ACTIVE) && RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWCLASS, uint8) == w->classification && - RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, uint16) == w->number) { + RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWNUMBER, uint16) == w->number) { tool_cancel(); } }