diff options
author | SaracenOne <SaracenOne@gmail.com> | 2021-12-24 21:11:20 +0000 |
---|---|---|
committer | SaracenOne <SaracenOne@gmail.com> | 2022-01-11 11:23:17 +0000 |
commit | 64d8b3aef287a66ebe0b90dd9c48be2f8983fed6 (patch) | |
tree | 72530f9ed1ba6bc6e67f0118ba69f53fc8e2e294 /modules | |
parent | 822728220b448d7aaa537d057912d197659582ab (diff) |
Assign member type when parsing setters to prevent
'Compiler bug: unresolved assign' errors
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/gdscript_compiler.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_compiler.cpp b/modules/gdscript/gdscript_compiler.cpp index 885c35c6a2..117ca68c18 100644 --- a/modules/gdscript/gdscript_compiler.cpp +++ b/modules/gdscript/gdscript_compiler.cpp @@ -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; |