diff --git a/BeefLibs/corlib/src/BumpAllocator.bf b/BeefLibs/corlib/src/BumpAllocator.bf index 8edde7f5..5abdb201 100644 --- a/BeefLibs/corlib/src/BumpAllocator.bf +++ b/BeefLibs/corlib/src/BumpAllocator.bf @@ -70,7 +70,7 @@ namespace System { for (var dtorEntry in ref mDtorEntriesEx) { - uint8* ptr = mPools[dtorEntry.mPoolIdx].Ptr + (int)dtorEntry.mPoolOfs; + uint8* ptr = mPools[(int)dtorEntry.mPoolIdx].Ptr + dtorEntry.mPoolOfs; Object obj = Internal.UnsafeCastToObject(ptr); delete:null obj; }