Browse Source

GDScript: Fix method ptrcall on release

George Marques 4 năm trước cách đây
mục cha
commit
082f624ef4
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      modules/gdscript/gdscript_vm.cpp

+ 1 - 0
modules/gdscript/gdscript_vm.cpp

@@ -1719,6 +1719,7 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a
 #define OPCODE_CALL_PTR(m_type)                                                   \
 	OPCODE(OPCODE_CALL_PTRCALL_##m_type) {                                        \
 		CHECK_SPACE(3 + instr_arg_count);                                         \
+		ip += instr_arg_count;                                                    \
 		int argc = _code_ptr[ip + 1];                                             \
 		GET_INSTRUCTION_ARG(base, argc);                                          \
 		MethodBind *method = _methods_ptr[_code_ptr[ip + 2]];                     \