Fixed a critical bug in Array field name generation. Added DNAAttribute and DNAListAttribute classes

This commit is contained in:
Samuele Lorefice
2025-03-04 18:47:55 +01:00
parent b70bcd4d02
commit 8bbfb49720
4 changed files with 142 additions and 1 deletions

View File

@@ -432,7 +432,7 @@ namespace CodeGenerator {
var dimensions = GetArrayDimensions(name);
// Get clean field name (without array brackets)
name = field.Name.ParseFName().Substring(0, field.Name.IndexOf('['));
name = field.Name.Substring(0, field.Name.IndexOf('[')).ParseFName();
//Check if the type is a built-in type or a custom type
if (t != null) cmf = new(t, name); //Built-in type