From fb7b2b7c5f59d3717ee73067ab26b0359575f196 Mon Sep 17 00:00:00 2001 From: RedBrumbler Date: Thu, 14 Dec 2023 22:31:10 +0100 Subject: [PATCH] missing * --- shared/types.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/types.hpp b/shared/types.hpp index 9591c97..9652199 100644 --- a/shared/types.hpp +++ b/shared/types.hpp @@ -226,7 +226,7 @@ namespace custom_types { if constexpr (std::is_pointer_v) { *static_cast(retval) = std::forward(thing); } else if constexpr (il2cpp_utils::il2cpp_reference_type_wrapper) { - static_cast(retval) = thing.convert(); + *static_cast(retval) = thing.convert(); } else if constexpr (il2cpp_utils::il2cpp_value_type) { std::memcpy(retval, thing.convert(), il2cpp_instance_sizeof(Q)); } else {