From d266ab5f91c5ea1be5e6f011724beb4ec3927ae6 Mon Sep 17 00:00:00 2001 From: Tomas Dittmann Date: Wed, 16 Aug 2017 10:22:27 +0200 Subject: [PATCH] Fix #6133: Construction rights not shown after selecting buy mode tool_set() cancels the previous tool, so it has to be called first or it will cancel the _landRightsMode that was meant to be activated. --- src/openrct2-ui/windows/LandRights.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2-ui/windows/LandRights.cpp b/src/openrct2-ui/windows/LandRights.cpp index 5a7bcd4e8a..66ad585334 100644 --- a/src/openrct2-ui/windows/LandRights.cpp +++ b/src/openrct2-ui/windows/LandRights.cpp @@ -163,20 +163,20 @@ static void window_land_rights_mouseup(rct_window *w, rct_widgetindex widgetInde case WIDX_BUY_LAND_RIGHTS: if (_landRightsMode != LAND_RIGHTS_MODE_BUY_LAND) { + tool_set(w, WIDX_BUY_LAND_RIGHTS, TOOL_UP_ARROW); _landRightsMode = LAND_RIGHTS_MODE_BUY_LAND; hide_construction_rights(); show_land_rights(); - tool_set(w, WIDX_BUY_LAND_RIGHTS, TOOL_UP_ARROW); window_invalidate(w); } break; case WIDX_BUY_CONSTRUCTION_RIGHTS: if (_landRightsMode != LAND_RIGHTS_MODE_BUY_CONSTRUCTION_RIGHTS) { + tool_set(w, WIDX_BUY_CONSTRUCTION_RIGHTS, TOOL_UP_ARROW); _landRightsMode = LAND_RIGHTS_MODE_BUY_CONSTRUCTION_RIGHTS; hide_land_rights(); show_construction_rights(); - tool_set(w, WIDX_BUY_CONSTRUCTION_RIGHTS, TOOL_UP_ARROW); window_invalidate(w); } break;