forked from rosebudai/OpenRCT2-Web
Fix #8493: Remove_unused_scenery removes map data
Do not try to remove (unused) terrain surfaces, edges and stations.
This commit is contained in:
1 parent
8721bef807
commit
153ab15428
1 file changed
+1
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user