Explorar el Código

Fix disassembly of OPCODE_CONSTRUCT_TYPED_ARRAY.

Found while inspecting the bytecode for godot-benchmarks.
Owen Anderson hace 2 años
padre
commit
835309c0a5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      modules/gdscript/gdscript_disassembler.cpp

+ 1 - 1
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];