Fix GDScript variables addresses getting mixed
This commit is contained in:
parent
a864a703ee
commit
3168c2a513
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue