mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 14:02:59 +01:00
Fix #23044: "remove_unused_objects" command causes blank peep names
This commit is contained in:
@@ -707,6 +707,10 @@ int32_t EditorRemoveUnusedObjects()
|
||||
if (objectType == ObjectType::Water)
|
||||
continue;
|
||||
|
||||
// Avoid the used peep names object being deleted as no in-use checks are performed.
|
||||
if (objectType == ObjectType::PeepNames)
|
||||
continue;
|
||||
|
||||
// It’s hard to determine exactly if a scenery group is used, so do not remove these automatically.
|
||||
if (objectType == ObjectType::SceneryGroup)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user