Assign member type when parsing setters to prevent

'Compiler bug: unresolved assign' errors
This commit is contained in:
SaracenOne 2021-12-24 21:11:20 +00:00
parent 822728220b
commit 64d8b3aef2
1 changed files with 1 additions and 0 deletions

View File

@ -1094,6 +1094,7 @@ GDScriptCodeGenerator::Address GDScriptCompiler::_parse_expression(CodeGen &code
is_in_setter = has_setter && setter_function == codegen.function_name;
member.mode = GDScriptCodeGenerator::Address::MEMBER;
member.address = codegen.script->member_indices[var_name].index;
member.type = codegen.script->member_indices[var_name].data_type;
}
GDScriptCodeGenerator::Address target;