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

fix: use correct written variable for WriteArray zone code methods

This commit is contained in:
Jan Laupetin
2026-01-11 14:27:48 +01:00
parent 7dffc77ed7
commit 1dc25ee20a

View File

@@ -1598,7 +1598,7 @@ namespace
m_intendation++; m_intendation++;
LINEF("const auto arrayFill = m_stream->WriteWithFill({0} * count);", def->GetSize()) LINEF("const auto arrayFill = m_stream->WriteWithFill({0} * count);", def->GetSize())
LINEF("{0} = arrayFill.Offset();", MakeTypeWrittenVarName(info->m_definition)) LINEF("{0} = arrayFill.Offset();", MakeTypeWrittenVarName(def))
LINEF("auto* arrayStart = {0};", MakeTypeVarName(def)) LINEF("auto* arrayStart = {0};", MakeTypeVarName(def))
LINEF("auto* var = {0};", MakeTypeVarName(def)) LINEF("auto* var = {0};", MakeTypeVarName(def))
LINE("for (size_t index = 0; index < count; index++)") LINE("for (size_t index = 0; index < count; index++)")