2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-05-26 11:31:43 +00:00

fix: not adding offset of reusable type when type is not structure

This commit is contained in:
Jan Laupetin
2026-03-14 15:56:08 +01:00
parent adc3908b90
commit 14b143466d
17 changed files with 135 additions and 42 deletions
@@ -661,7 +661,7 @@ namespace
void PrintFillStruct_Struct(const StructureInformation& info)
{
if (info.m_reusable_reference_exists)
if (info.m_type_info && info.m_type_info->m_reusable_reference_exists)
{
LINEF("m_stream.AddPointerLookup({0}, fillAccessor.BlockBuffer(0));", MakeTypeVarName(info.m_definition))
LINE("")
@@ -715,7 +715,7 @@ namespace
if (member->m_is_reusable)
return true;
if (member->m_type == nullptr || !member->m_type->m_reusable_reference_exists)
if (member->m_type_info == nullptr || !member->m_type_info->m_reusable_reference_exists)
return false;
return true;