Fix errors in iw3 commands and structs

This commit is contained in:
Jan
2021-04-15 10:37:39 +02:00
parent ecef868903
commit 4e05bc6b44
4 changed files with 29 additions and 18 deletions

View File

@ -442,7 +442,7 @@ class ZoneLoadTemplate::Internal final : BaseTemplate
if (member->m_type && !member->m_type->m_is_leaf && !computations.IsInRuntimeBlock())
{
LINE(MakeTypeVarName(member->m_member->m_type_declaration->m_type) << " = " << MakeMemberAccess(info, member, modifier) << ";")
LINE("Load_" << MakeSafeTypeName(member->m_member->m_type_declaration->m_type) << "(true);")
LINE("Load_" << MakeSafeTypeName(member->m_type->m_definition) << "(true);")
if (member->m_type->m_post_load_action)
{

View File

@ -320,7 +320,7 @@ class ZoneWriteTemplate::Internal final : BaseTemplate
if (member->m_type && !member->m_type->m_is_leaf && !computations.IsInRuntimeBlock())
{
LINE(MakeTypeVarName(member->m_member->m_type_declaration->m_type) << " = " << MakeMemberAccess(info, member, modifier) << ";")
LINE("Write_" << MakeSafeTypeName(member->m_member->m_type_declaration->m_type) << "(true);")
LINE("Write_" << MakeSafeTypeName(member->m_type->m_definition) << "(true);")
}
else
{