diff --git a/include/cordl_internals/unity-utils.hpp b/include/cordl_internals/unity-utils.hpp index 9356abe23e..afabdf8de9 100644 --- a/include/cordl_internals/unity-utils.hpp +++ b/include/cordl_internals/unity-utils.hpp @@ -103,7 +103,7 @@ struct BS_HOOKS_HIDDEN ::il2cpp_utils::il2cpp_type_check::need_box> { template struct ::il2cpp_utils::il2cpp_type_check::il2cpp_no_arg_type> { - static inline Il2CppClass *get() { + static inline const Il2CppType* get() { // don't double cache here, just inline return ::il2cpp_utils::il2cpp_type_check::il2cpp_no_arg_type::get(); } @@ -117,4 +117,4 @@ struct ::il2cpp_utils::il2cpp_type_check::il2cpp_no_arg_class> { // don't double cache here, just inline return ::il2cpp_utils::il2cpp_type_check::il2cpp_no_arg_class::get(); } -}; \ No newline at end of file +};