summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_compiler.cpp
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2019-12-13 11:35:01 -0300
committerGeorge Marques <george@gmarqu.es>2019-12-13 12:51:08 -0300
commit475d7f0e5211c981db87fd02176cfa5dab02833e (patch)
treeaf05fbd1c839d534628682be944eb795765beaf4 /modules/gdscript/gdscript_compiler.cpp
parentf065b34e969f93e5ecc9046e01c5c14c416d2d16 (diff)
downloadredot-engine-475d7f0e5211c981db87fd02176cfa5dab02833e.tar.gz
GDScript: Fix type conversion in assignment with operation
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: {