1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix sv6 export not adding all objects (#15419)

This commit is contained in:
ζeh Matt
2021-09-16 06:28:02 -07:00
committed by GitHub
parent 2f2e8b4c48
commit 427bb7b330

View File

@@ -266,7 +266,7 @@ static void ExportObjectList(IObjectManager& objMgr, T& objects)
auto& dst = objects[i];
const auto* object = objMgr.GetLoadedObject(TObjectType, i);
if (object == nullptr || object->GetGeneration() != ObjectGeneration::DAT)
if (object == nullptr)
{
// The sv6 format expects null/invalid entries to be filled with 0xFF.
std::memset(&dst, 0xFF, sizeof(dst));