mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 00:02:55 +00:00
ZoneCodeGenerator: Fix CustomAlignment not being applied to structs
This commit is contained in:
parent
9e516cea1f
commit
e7e65127e2
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user