2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-01-19 15:01:49 +00:00

fix: marking invalid offset as written in WritePtrArray methods

This commit is contained in:
Jan Laupetin
2026-01-18 17:12:13 +01:00
parent 7c52fde1f8
commit 5b6b82424b

View File

@@ -1494,7 +1494,7 @@ namespace
{ {
LINEF("m_stream->Write<{0}>(*{1});", def->GetFullName(), MakeTypePtrVarName(def)) LINEF("m_stream->Write<{0}>(*{1});", def->GetFullName(), MakeTypePtrVarName(def))
} }
LINEF("m_stream->MarkFollowing({0});", MakeTypeWrittenPtrVarName(def)) LINEF("m_stream->MarkFollowing(varWritten);")
} }
void PrintWritePtrArrayMethod_PointerCheck(const DataDefinition* def, const StructureInformation* info, const bool reusable) void PrintWritePtrArrayMethod_PointerCheck(const DataDefinition* def, const StructureInformation* info, const bool reusable)