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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user