GDScript: Fix return of cast expression on compilation
It was mistakenly returning the source instead of the result.
This commit is contained in:
parent
fb3dc2670a
commit
ed3d8f31df
1 changed files with 1 additions and 1 deletions
|
@ -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<const GDScriptParser::CallNode *>(p_expression);
|
||||
|
|
Loading…
Reference in a new issue