1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Fix crash when opening object selection

This commit is contained in:
Michael Steenbeek
2017-12-25 12:53:23 +01:00
parent 8fdec42ff9
commit 6d5dd061d7

View File

@@ -151,6 +151,9 @@ void setup_in_use_selection_flags()
case TILE_ELEMENT_TYPE_ENTRANCE:
if (iter.element->properties.entrance.type != ENTRANCE_TYPE_PARK_ENTRANCE)
break;
// Skip if not the middle part
if (iter.element->properties.entrance.index != 0)
break;
Editor::SelectedObjects[OBJECT_TYPE_PARK_ENTRANCE][0] |= OBJECT_SELECTION_FLAG_SELECTED;