mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-07-05 18:51:55 +00:00
Fix counting padding for root struct even when root struct has no properties
This commit is contained in:
@ -116,10 +116,14 @@ namespace sdd::def_scope_sequences
|
||||
if (newStructPtr->m_name == "root")
|
||||
{
|
||||
state->m_current_struct_padding_offset = 64u;
|
||||
state->m_current_struct_is_root = true;
|
||||
state->m_current_def->m_root_type = CommonStructuredDataType(CommonStructuredDataTypeCategory::STRUCT, newStructIndex);
|
||||
}
|
||||
else
|
||||
{
|
||||
state->m_current_struct_is_root = false;
|
||||
state->m_current_struct_padding_offset = 0;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user