Fix crash when opening object selection

This commit is contained in:
Michael Steenbeek committed 2017-12-27 13:17:09 +01:00
1 parent 8fdec42ff9
commit 6d5dd061d7
1 file changed
+3
@@ -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;