mirror of
https://github.com/godotengine/godot
synced 2024-09-18 20:11:29 +00:00
Merge pull request #47627 from Blackiris/fix-gdscript-var-address
Fix GDScript variables addresses getting mixed
This commit is contained in:
commit
e0b24467f7
|
@ -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