diff --git a/Il2CppInterop.Runtime/Runtime/Il2CppObjectPool.cs b/Il2CppInterop.Runtime/Runtime/Il2CppObjectPool.cs index 6c857cb8..9a78e6ea 100644 --- a/Il2CppInterop.Runtime/Runtime/Il2CppObjectPool.cs +++ b/Il2CppInterop.Runtime/Runtime/Il2CppObjectPool.cs @@ -41,7 +41,7 @@ public static T Get(IntPtr ptr) unsafe { var nativeClassStruct = UnityVersionHandler.Wrap((Il2CppClass*)Il2CppClassPointerStore.NativeClassPtr); - if (!nativeClassStruct?.HasFinalize is true) + if (nativeClassStruct?.HasFinalize is false) { Il2CppSystem.GC.ReRegisterForFinalize(newObj as Object ?? new Object(ptr)); }