summaryrefslogtreecommitdiff
path: root/core/callable_method_pointer.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-07-26 11:18:01 +0200
committerGitHub <noreply@github.com>2020-07-26 11:18:01 +0200
commit9856c8fda45c080886603515320faec4858d46dd (patch)
tree12f2082979e41fc102d3a21596f5a8c7c5f4c350 /core/callable_method_pointer.h
parent44c90e66d07f87ef5d0fb7c7f5e6a0b2a35c7e0c (diff)
parentbf257adbf5808cfe3b0f9399442d8acd1e218760 (diff)
Merge pull request #40434 from naithar/feature/ios-moltenVK
[iOS] Basic Vulkan/Metal Support
Diffstat (limited to 'core/callable_method_pointer.h')
-rw-r--r--core/callable_method_pointer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/callable_method_pointer.h b/core/callable_method_pointer.h
index 22db7d1c82..1bb89e53e1 100644
--- a/core/callable_method_pointer.h
+++ b/core/callable_method_pointer.h
@@ -131,7 +131,7 @@ void call_with_variant_args_helper(T *p_instance, void (T::*p_method)(P...), con
#ifdef DEBUG_METHODS_ENABLED
(p_instance->*p_method)(VariantCasterAndValidate<P>::cast(p_args, Is, r_error)...);
#else
- (p_instance->*p_method)(VariantCaster<P>::cast(p_args[Is])...);
+ (p_instance->*p_method)(VariantCaster<P>::cast(*p_args[Is])...);
#endif
}
@@ -228,7 +228,7 @@ void call_with_variant_args_ret_helper(T *p_instance, R (T::*p_method)(P...), co
#ifdef DEBUG_METHODS_ENABLED
r_ret = (p_instance->*p_method)(VariantCasterAndValidate<P>::cast(p_args, Is, r_error)...);
#else
- (p_instance->*p_method)(VariantCaster<P>::cast(p_args[Is])...);
+ (p_instance->*p_method)(VariantCaster<P>::cast(*p_args[Is])...);
#endif
}