From 5b49382d38f1cebd7defc2b12c65b86285346699 Mon Sep 17 00:00:00 2001 From: George Marques Date: Mon, 27 Feb 2023 11:19:22 -0300 Subject: [PATCH] GDScript: Fix wrong increment for disassembly of lambda --- modules/gdscript/gdscript_disassembler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gdscript/gdscript_disassembler.cpp b/modules/gdscript/gdscript_disassembler.cpp index 0acc03be3d6..45ad8792d99 100644 --- a/modules/gdscript/gdscript_disassembler.cpp +++ b/modules/gdscript/gdscript_disassembler.cpp @@ -851,7 +851,7 @@ void GDScriptFunction::disassemble(const Vector &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 &p_code_lines) const { } text += ")"; - incr = 3 + captures_count; + incr = 4 + captures_count; } break; case OPCODE_JUMP: { text += "jump ";