Fix temporary value not released when used as a dictionary key
This commit is contained in:
parent
4a7679e4dd
commit
82522662f8
@ -966,6 +966,9 @@ GDScriptCodeGenerator::Address GDScriptCompiler::_parse_expression(CodeGen &code
|
||||
} else {
|
||||
gen->write_set(prev_base, key, assigned);
|
||||
}
|
||||
if (key.mode == GDScriptCodeGenerator::Address::TEMPORARY) {
|
||||
gen->pop_temporary();
|
||||
}
|
||||
if (assigned.mode == GDScriptCodeGenerator::Address::TEMPORARY) {
|
||||
gen->pop_temporary();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user