diff --git a/src/openrct2/park/Legacy.cpp b/src/openrct2/park/Legacy.cpp index 9b08d76b2b..938eee64e3 100644 --- a/src/openrct2/park/Legacy.cpp +++ b/src/openrct2/park/Legacy.cpp @@ -2292,7 +2292,7 @@ const std::vector peepAnimObjects = { "rct2.peep_animations.entertainer_snowman", }; -const std::vector& GetLegacyPeepAnimationObjects(const ObjectList& entryList) +const std::vector& GetLegacyPeepAnimationObjects() { return peepAnimObjects; } diff --git a/src/openrct2/park/Legacy.h b/src/openrct2/park/Legacy.h index 3453e49376..ba946017c7 100644 --- a/src/openrct2/park/Legacy.h +++ b/src/openrct2/park/Legacy.h @@ -40,7 +40,7 @@ void UpdateFootpathsFromMapping( ObjectList& requiredObjects, ObjectEntryIndex& surfaceCount, ObjectEntryIndex& railingCount, ObjectEntryIndex entryIndex, const OpenRCT2::RCT2::FootpathMapping* footpathMapping); -const std::vector& GetLegacyPeepAnimationObjects(const ObjectList& entryList); +const std::vector& GetLegacyPeepAnimationObjects(); void ConvertPeepAnimationTypeToObjects(OpenRCT2::GameState_t& gameState); /** diff --git a/src/openrct2/park/ParkFile.cpp b/src/openrct2/park/ParkFile.cpp index 863281231d..536dca72a8 100644 --- a/src/openrct2/park/ParkFile.cpp +++ b/src/openrct2/park/ParkFile.cpp @@ -385,7 +385,7 @@ namespace OpenRCT2 if (version < kPeepAnimationObjectsVersion) { - auto animObjects = GetLegacyPeepAnimationObjects(requiredObjects); + auto animObjects = GetLegacyPeepAnimationObjects(); AppendRequiredObjects(requiredObjects, ObjectType::peepAnimations, animObjects); } diff --git a/src/openrct2/rct1/S4Importer.cpp b/src/openrct2/rct1/S4Importer.cpp index 651dd7d214..1a9741a587 100644 --- a/src/openrct2/rct1/S4Importer.cpp +++ b/src/openrct2/rct1/S4Importer.cpp @@ -1559,7 +1559,7 @@ namespace OpenRCT2::RCT1 AppendRequiredObjects(result, ObjectType::scenarioText, std::vector({ desc.textObjectId })); // Add all legacy peep animation objects - auto animObjects = GetLegacyPeepAnimationObjects(result); + auto animObjects = GetLegacyPeepAnimationObjects(); AppendRequiredObjects(result, ObjectType::peepAnimations, animObjects); return result; diff --git a/src/openrct2/rct2/S6Importer.cpp b/src/openrct2/rct2/S6Importer.cpp index c06086cb4e..8f06747f70 100644 --- a/src/openrct2/rct2/S6Importer.cpp +++ b/src/openrct2/rct2/S6Importer.cpp @@ -1904,7 +1904,7 @@ namespace OpenRCT2::RCT2 AppendRequiredObjects( objectList, ObjectType::scenarioText, std::vector({ desc.textObjectId })); - auto animObjects = GetLegacyPeepAnimationObjects(objectList); + auto animObjects = GetLegacyPeepAnimationObjects(); AppendRequiredObjects(objectList, ObjectType::peepAnimations, animObjects); return objectList;