diff options
author | Sergey Minakov <naithar@icloud.com> | 2020-07-16 15:05:52 +0300 |
---|---|---|
committer | Sergey Minakov <naithar@icloud.com> | 2020-07-25 21:55:08 +0200 |
commit | 8e9a07c401c0e9c12adf23043df1f9d73a908512 (patch) | |
tree | 315f2e90eda89a00d615e70e118df50f1e1684ed /core | |
parent | 6e0d4e21ffc762cbb162f07a41b16e739d1c02bb (diff) |
Core Callable: fixed variant call caster
Use same call to VariantCaster in release build as used in VariantCasterAndValidate::call method
Diffstat (limited to 'core')
-rw-r--r-- | core/callable_method_pointer.h | 4 |
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 } |