Fix crash when moving selected tile with spinners

This commit is contained in:
Broxzier committed 2016-10-11 23:27:11 +02:00
1 parent 75326ba0c1
commit 2b87dcf71a
1 file changed
+5
+5
View File
@@ -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);