Fix sv6 export not adding all objects (#15419)

This commit is contained in:
ζeh Matt authored and GitHub committed 2021-09-16 14:28:02 +01:00
1 parent 2f2e8b4c48
commit 427bb7b330
1 file changed
+1 -1
+1 -1
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));