Fix #15221: Update tile inspector highlighted element when order changes (#15223)

This commit is contained in:
ζeh Matt authored and GitHub committed 2021-08-16 10:36:02 +01:00
1 parent 0bb0800b6c
commit 1553c904ea
1 file changed
+4
@@ -818,6 +818,10 @@ static void window_tile_inspector_mouseup(rct_window* w, rct_widgetindex widgetI
}
TileElement* const tileElement = window_tile_inspector_get_selected_element(w);
// Update selection, can be nullptr.
OpenRCT2::TileInspector::SetSelectedElement(tileElement);
if (tileElement == nullptr)
return;