1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 14:24:33 +01:00

Fix #11259: Custom JSON object breaks saves (#11356)

Do not attempt to pack JSON objects into S6 files.
This commit is contained in:
Ted John
2020-04-19 13:18:12 +01:00
committed by GitHub
parent 5bfc41f49e
commit b9e85f6b90
4 changed files with 15 additions and 1 deletions

View File

@@ -207,7 +207,8 @@ 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) && item->LoadedObject->GetLegacyData() != nullptr
&& !item->LoadedObject->IsJsonObject())
{
objects.push_back(item);
}