Skip to content

Commit

Permalink
Reformat statement
Browse files Browse the repository at this point in the history
  • Loading branch information
aceman1209 committed Jan 13, 2025
1 parent 2d3b038 commit baeb625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Il2CppInterop.Runtime/Runtime/Il2CppObjectPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static T Get<T>(IntPtr ptr)
unsafe
{
var nativeClassStruct = UnityVersionHandler.Wrap((Il2CppClass*)Il2CppClassPointerStore<T>.NativeClassPtr);
if (!nativeClassStruct?.HasFinalize is true)
if (nativeClassStruct?.HasFinalize is false)
{
Il2CppSystem.GC.ReRegisterForFinalize(newObj as Object ?? new Object(ptr));
}
Expand Down

0 comments on commit baeb625

Please sign in to comment.