GDScript: Fix method ptrcall on release

This commit is contained in:
George Marques 2021-10-07 15:08:21 -03:00
parent 22f2b27528
commit 082f624ef4
No known key found for this signature in database
GPG key ID: 046BD46A3201E43D

View file

@ -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]]; \