Fixed wrong attribute position being modified. Regenerated code files

This commit is contained in:
Samuele Lorefice
2025-03-07 19:18:52 +01:00
parent 73e98f5c5d
commit b6760ab27a
9 changed files with 12 additions and 12 deletions

View File

@@ -222,7 +222,7 @@ namespace CodeGenerator {
var x = ctd.Members.OfType<CodeMemberField>().FirstOrDefault(member => member.Name.ParseFName() == listPointerName);
if (x != null) //Update the existing list attribute
x.CustomAttributes[0].Arguments[5] = new(new CodePrimitiveExpression(totalSize));
x.CustomAttributes[0].Arguments[9] = new(new CodePrimitiveExpression(totalSize));
else //Store the data for when the list attribute is made
listCountOffsets.Add(fName, totalSize);