diff options
-rw-r--r-- | include/godot_cpp/core/method_ptrcall.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/godot_cpp/core/method_ptrcall.hpp b/include/godot_cpp/core/method_ptrcall.hpp index b0b9874..5aae0f3 100644 --- a/include/godot_cpp/core/method_ptrcall.hpp +++ b/include/godot_cpp/core/method_ptrcall.hpp @@ -169,7 +169,7 @@ struct PtrToArg<T *> { } typedef Object *EncodeT; _FORCE_INLINE_ static void encode(T *p_var, void *p_ptr) { - p_ptr = p_var->_owner; + *((void **)p_ptr) = p_var->_owner; } }; @@ -180,7 +180,7 @@ struct PtrToArg<const T *> { } typedef const Object *EncodeT; _FORCE_INLINE_ static void encode(T *p_var, void *p_ptr) { - p_ptr = p_var->_owner; + *((void **)p_ptr) = p_var->_owner; } }; |