1
0
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:
Sjoerd de Bruin
2024-10-23 11:24:14 +02:00
committed by GitHub
parent 4b0b32b2b7
commit 1ff192b8a0
2 changed files with 5 additions and 0 deletions

View File

@@ -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;
// Its hard to determine exactly if a scenery group is used, so do not remove these automatically.
if (objectType == ObjectType::SceneryGroup)
continue;