1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 13:33:02 +01:00

Fix #19652: remove_unused_objects removes scenery groups

This commit is contained in:
Gymnasiast
2023-03-18 14:52:36 +01:00
parent 198aa59480
commit f31d3c5cc1

View File

@@ -679,6 +679,10 @@ int32_t EditorRemoveUnusedObjects()
if (objectType == ObjectType::ParkEntrance || objectType == ObjectType::Water)
continue;
// Its hard to determine exactly if a scenery group is used, so do not remove these automatically.
if (objectType == ObjectType::SceneryGroup)
continue;
_numSelectedObjectsForType[EnumValue(objectType)]--;
_objectSelectionFlags[i] &= ~ObjectSelectionFlags::Selected;
numUnselectedObjects++;