1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Fix #8493: Remove_unused_scenery removes map data

Do not try to remove (unused) terrain surfaces, edges and stations.
This commit is contained in:
Ted John
2018-12-30 23:40:22 +00:00
parent 8721bef807
commit 153ab15428

View File

@@ -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;
}