From ed3d8f31df143337f43bb219da12f68f1d620df7 Mon Sep 17 00:00:00 2001 From: George Marques Date: Wed, 25 Nov 2020 11:37:51 -0300 Subject: GDScript: Fix return of cast expression on compilation It was mistakenly returning the source instead of the result. --- modules/gdscript/gdscript_compiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/gdscript') diff --git a/modules/gdscript/gdscript_compiler.cpp b/modules/gdscript/gdscript_compiler.cpp index 69fe6d27cc..499cd09b4e 100644 --- a/modules/gdscript/gdscript_compiler.cpp +++ b/modules/gdscript/gdscript_compiler.cpp @@ -437,7 +437,7 @@ GDScriptCodeGenerator::Address GDScriptCompiler::_parse_expression(CodeGen &code gen->pop_temporary(); } - return source; + return result; } break; case GDScriptParser::Node::CALL: { const GDScriptParser::CallNode *call = static_cast(p_expression); -- cgit v1.2.3