From fb9df58e1c6bba9ded09b2d0c477e992a84667b4 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sat, 1 Mar 2025 19:34:30 +0100 Subject: [PATCH] Avoid considering climate objects as 'unused' --- src/openrct2/EditorObjectSelectionSession.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openrct2/EditorObjectSelectionSession.cpp b/src/openrct2/EditorObjectSelectionSession.cpp index 21f3c8581b..7c2f50da39 100644 --- a/src/openrct2/EditorObjectSelectionSession.cpp +++ b/src/openrct2/EditorObjectSelectionSession.cpp @@ -753,6 +753,10 @@ int32_t EditorRemoveUnusedObjects() if (objectType == ObjectType::peepAnimations) continue; + // Avoid deleting climate objects, as they're not bound to entities. + if (objectType == ObjectType::climate) + continue; + // It’s hard to determine exactly if a scenery group is used, so do not remove these automatically. if (objectType == ObjectType::sceneryGroup) continue;