diff --git a/BeefLibs/corlib/src/Allocator.bf b/BeefLibs/corlib/src/Allocator.bf index 9f2fab0d..20fe04a7 100644 --- a/BeefLibs/corlib/src/Allocator.bf +++ b/BeefLibs/corlib/src/Allocator.bf @@ -82,7 +82,7 @@ namespace System mType = type; do { - if (size > size) + if (size > mSize) break; void* usePtr = (void*)(int)Math.Align((int)mPtr, align); if ((uint8*)usePtr + size > (uint8*)mPtr + mSize)