GDScript: Fix wrong increment for disassembly of lambda

(cherry picked from commit 5b49382d38)
This commit is contained in:
George Marques 2023-02-27 11:19:22 -03:00 committed by Rémi Verschelde
parent 908325c29e
commit aff0340486
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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 ";