2
0
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:
Jan
2022-03-22 16:15:42 +01:00
parent f236d285b6
commit 2e5405deb5
4 changed files with 14 additions and 4 deletions

View File

@ -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;
}
}
};