diff options
Diffstat (limited to 'modules/mono/managed_callable.cpp')
-rw-r--r-- | modules/mono/managed_callable.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/mono/managed_callable.cpp b/modules/mono/managed_callable.cpp index 334de14a6b..9305dc645a 100644 --- a/modules/mono/managed_callable.cpp +++ b/modules/mono/managed_callable.cpp @@ -87,6 +87,8 @@ void ManagedCallable::call(const Variant **p_arguments, int p_argcount, Variant r_call_error.error = Callable::CallError::CALL_ERROR_INVALID_METHOD; // Can't find anything better r_return_value = Variant(); + ERR_FAIL_COND(delegate_handle.value == nullptr); + GDMonoCache::managed_callbacks.DelegateUtils_InvokeWithVariantArgs( delegate_handle, p_arguments, p_argcount, &r_return_value); |