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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user