Fix GDScript variables addresses getting mixed

This commit is contained in:
Julien Nguyen 2021-04-04 19:03:15 +02:00
parent a864a703ee
commit 3168c2a513

View file

@ -778,6 +778,10 @@ GDScriptCodeGenerator::Address GDScriptCompiler::_parse_expression(CodeGen &code
gen->pop_temporary();
}
}
if (operand.mode == GDScriptCodeGenerator::Address::TEMPORARY) {
gen->pop_temporary();
}
} break;
default: {
GDScriptCodeGenerator::Address left_operand = _parse_expression(codegen, r_error, binary->left_operand);