1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 03:53:07 +01:00

Fix #17466: New object types not packed in save files (#17467)

This commit is contained in:
Ted John
2022-06-28 19:59:09 +01:00
committed by GitHub
parent c823bf5f7e
commit 854655af55
2 changed files with 1 additions and 9 deletions

View File

@@ -252,7 +252,7 @@ public:
for (size_t i = 0; i < numObjects; i++)
{
const ObjectRepositoryItem* item = &_objectRepository.GetObjects()[i];
if (item->LoadedObject != nullptr && IsObjectCustom(item) && item->LoadedObject->GetLegacyData() != nullptr)
if (item->LoadedObject != nullptr && IsObjectCustom(item))
{
objects.push_back(item);
}