summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-01-17 20:16:26 +0100
committerGitHub <noreply@github.com>2022-01-17 20:16:26 +0100
commit12ab19fa26e85c9dbaedc0ccc25143a04527504e (patch)
treea52894854184d9bc588fb2da07e16b2b6102ebdd /modules
parentae52ad2fc4b7e8fd7e1a64bb6568adccfc5c36d3 (diff)
parent6204d956b890e5b7fc191dd7353f0801b59535bc (diff)
Merge pull request #55616 from cdemirer/master
Fix nested ternary-if codegen
Diffstat (limited to 'modules')
-rw-r--r--modules/gdscript/gdscript_byte_codegen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_byte_codegen.cpp b/modules/gdscript/gdscript_byte_codegen.cpp
index 8623122edc..82aa14795e 100644
--- a/modules/gdscript/gdscript_byte_codegen.cpp
+++ b/modules/gdscript/gdscript_byte_codegen.cpp
@@ -688,6 +688,7 @@ void GDScriptByteCodeGenerator::write_ternary_false_expr(const Address &p_expr)
void GDScriptByteCodeGenerator::write_end_ternary() {
patch_jump(ternary_jump_skip_pos.back()->get());
ternary_jump_skip_pos.pop_back();
+ ternary_result.pop_back();
}
void GDScriptByteCodeGenerator::write_set(const Address &p_target, const Address &p_index, const Address &p_source) {