summaryrefslogtreecommitdiff
path: root/modules/gdscript
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2023-01-31 21:52:51 -0600
committerOwen Anderson <resistor@mac.com>2023-01-31 21:52:51 -0600
commit835309c0a5279bef0dff40baadbbafb56d7d2827 (patch)
tree4e22f41f18cc9982144f40089c4a0a6fc557346a /modules/gdscript
parent3ef8d3e4e80887d21009abc84def627e8a1c031f (diff)
Fix disassembly of OPCODE_CONSTRUCT_TYPED_ARRAY.
Found while inspecting the bytecode for godot-benchmarks.
Diffstat (limited to 'modules/gdscript')
-rw-r--r--modules/gdscript/gdscript_disassembler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_disassembler.cpp b/modules/gdscript/gdscript_disassembler.cpp
index b5c8a6f478..9070ba93e7 100644
--- a/modules/gdscript/gdscript_disassembler.cpp
+++ b/modules/gdscript/gdscript_disassembler.cpp
@@ -463,7 +463,7 @@ void GDScriptFunction::disassemble(const Vector<String> &p_code_lines) const {
text += "]";
- incr += 3 + argc;
+ incr += 4 + instr_var_args;
} break;
case OPCODE_CONSTRUCT_DICTIONARY: {
int instr_var_args = _code_ptr[++ip];