summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2023-02-27 11:19:22 -0300
committerRĂ©mi Verschelde <rverschelde@gmail.com>2023-04-27 08:49:29 +0200
commitaff0340486d77ad0ce0325cc1c673386a073d265 (patch)
treee80cf9464eb8bdccb7a5f4d4a490828383aa8d21
parent908325c29ebc94e58289911f64ebfb451679011c (diff)
GDScript: Fix wrong increment for disassembly of lambda
(cherry picked from commit 5b49382d38f1cebd7defc2b12c65b86285346699)
-rw-r--r--modules/gdscript/gdscript_disassembler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdscript/gdscript_disassembler.cpp b/modules/gdscript/gdscript_disassembler.cpp
index 0acc03be3d..45ad8792d9 100644
--- a/modules/gdscript/gdscript_disassembler.cpp
+++ b/modules/gdscript/gdscript_disassembler.cpp
@@ -851,7 +851,7 @@ void GDScriptFunction::disassemble(const Vector<String> &p_code_lines) const {
}
text += ")";
- incr = 3 + captures_count;
+ incr = 4 + captures_count;
} break;
case OPCODE_CREATE_SELF_LAMBDA: {
int instr_var_args = _code_ptr[++ip];
@@ -871,7 +871,7 @@ void GDScriptFunction::disassemble(const Vector<String> &p_code_lines) const {
}
text += ")";
- incr = 3 + captures_count;
+ incr = 4 + captures_count;
} break;
case OPCODE_JUMP: {
text += "jump ";