summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-01-11 13:58:01 +0100
committerGitHub <noreply@github.com>2022-01-11 13:58:01 +0100
commitdcd2364dacc6c0af2e949ca34dd6e7f6e75e7d5c (patch)
treef36f46c21f63d0566a8568ac4e2c5e68ea84e4d6
parentadf29a0deb3790c6036c16ed1d1975bd2fc9ed91 (diff)
parent64d8b3aef287a66ebe0b90dd9c48be2f8983fed6 (diff)
Merge pull request #56229 from V-Sekai/invalid_setter_assign_fix
-rw-r--r--modules/gdscript/gdscript_compiler.cpp1
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;