From 153ab15428ad5bc3d4da348f6bf2dafaec859995 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sun, 30 Dec 2018 23:40:22 +0000 Subject: [PATCH] Fix #8493: Remove_unused_scenery removes map data Do not try to remove (unused) terrain surfaces, edges and stations. --- src/openrct2/EditorObjectSelectionSession.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/openrct2/EditorObjectSelectionSession.cpp b/src/openrct2/EditorObjectSelectionSession.cpp index 6bec7ee4e7..cc651010ec 100644 --- a/src/openrct2/EditorObjectSelectionSession.cpp +++ b/src/openrct2/EditorObjectSelectionSession.cpp @@ -545,8 +545,7 @@ int32_t editor_remove_unused_objects() const ObjectRepositoryItem* item = &items[i]; uint8_t objectType = object_entry_get_type(&item->ObjectEntry); - if (objectType == OBJECT_TYPE_PARK_ENTRANCE || objectType == OBJECT_TYPE_WATER - || objectType == OBJECT_TYPE_SCENERY_GROUP) + if (objectType >= OBJECT_TYPE_SCENERY_GROUP) { continue; }