Fix GDScript variables addresses getting mixed
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user