summaryrefslogtreecommitdiff
path: root/modules/gdscript/gdscript_compiler.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-12-13 20:13:12 +0100
committerGitHub <noreply@github.com>2019-12-13 20:13:12 +0100
commite65db6a16b9f0dfc689fb4739d4373e916ac0402 (patch)
treeadc4f701bb61788ef23f30b66c67be07c1be7a8b /modules/gdscript/gdscript_compiler.cpp
parentd14f1947a432f3d62641bb95316313c569f71b30 (diff)
parentcb887324e6780a05f969de0c7387ac9e8c8cb5c2 (diff)
Merge pull request #34333 from vnen/gdscript-assign-op
Fix some cases where typed assignment gets invalid
Diffstat (limited to 'modules/gdscript/gdscript_compiler.cpp')
-rw-r--r--modules/gdscript/gdscript_compiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_compiler.cpp b/modules/gdscript/gdscript_compiler.cpp
index dea2225e91..7ce19f5adc 100644
--- a/modules/gdscript/gdscript_compiler.cpp
+++ b/modules/gdscript/gdscript_compiler.cpp
@@ -1144,7 +1144,7 @@ int GDScriptCompiler::_parse_expression(CodeGen &codegen, const GDScriptParser::
GDScriptDataType assign_type = _gdtype_from_datatype(on->arguments[0]->get_datatype());
- if (assign_type.has_type && !on->arguments[1]->get_datatype().has_type) {
+ if (assign_type.has_type && !on->datatype.has_type) {
// Typed assignment
switch (assign_type.kind) {
case GDScriptDataType::BUILTIN: {