ZoneCodeGenerator: Fix CustomAlignment not being applied to structs

This commit is contained in:
Jan 2019-09-28 12:41:14 +02:00
parent 9e516cea1f
commit e7e65127e2

View File

@ -61,7 +61,10 @@ namespace ZoneCodeGenerator.Parsing.C_Header.Blocks
if (!Name.Equals(poppedNamespaceName))
throw new Exception($"Popped namespace '{poppedNamespaceName}' does not equal name of struct block '{Name}'");
_struct = new DataTypeStruct(Namespace, Name, Pack);
_struct = new DataTypeStruct(Namespace, Name, Pack)
{
AlignmentOverride = CustomAlignment
};
_struct.Members.AddRange(Variables);