mirror of
https://github.com/godotengine/godot
synced 2024-09-05 05:48:29 +00:00
Merge pull request #74053 from vnen/gdscript-fix-disassembler-lambda-crash
GDScript: Fix wrong increment for disassembly of lambda
This commit is contained in:
commit
58439ac22c
|
@ -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 ";
|
||||
|
|
Loading…
Reference in a new issue