1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 15:24:30 +01:00

Fix crash when moving selected tile with spinners

This commit is contained in:
Broxzier
2016-10-05 00:32:04 +02:00
parent 75326ba0c1
commit 2b87dcf71a

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);