From 2b87dcf71ae6cd168fc48aa31b0155de5b22a3f2 Mon Sep 17 00:00:00 2001 From: Broxzier Date: Wed, 5 Oct 2016 00:32:04 +0200 Subject: [PATCH] Fix crash when moving selected tile with spinners --- src/windows/tile_inspector.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/windows/tile_inspector.c b/src/windows/tile_inspector.c index e567d103ff..f68c04181d 100644 --- a/src/windows/tile_inspector.c +++ b/src/windows/tile_inspector.c @@ -1023,6 +1023,11 @@ static void window_tile_inspector_mouseup(rct_window *w, int widgetIndex) { break; } + // Only element-specific widgets from now on + if (w->page == PAGE_DEFAULT) { + return; + } + // Get the selected map element rct_map_element *const mapElement = window_tile_inspector_get_selected_element(w);