summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2021-10-07 15:08:21 -0300
committerGeorge Marques <george@gmarqu.es>2021-10-07 15:08:21 -0300
commit082f624ef4b391976575ff8dfc7ad125bdb25a9d (patch)
treee4487b7cebc1c91d4be534eb6b57fb622b38da75 /modules
parent22f2b275286b859a6c23e179939a7a7c48e8c894 (diff)
GDScript: Fix method ptrcall on release
Diffstat (limited to 'modules')
-rw-r--r--modules/gdscript/gdscript_vm.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_vm.cpp b/modules/gdscript/gdscript_vm.cpp
index c89cf2f25c..1bc7ae086f 100644
--- a/modules/gdscript/gdscript_vm.cpp
+++ b/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]]; \