Skip to content

Commit

Permalink
Assign member type when parsing setters to prevent
Browse files Browse the repository at this point in the history
'Compiler bug: unresolved assign' errors
  • Loading branch information
SaracenOne committed Jan 11, 2022
1 parent 8227282 commit 64d8b3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/gdscript/gdscript_compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 64d8b3a

Please sign in to comment.