diff --git a/BeefLibs/corlib/src/BumpAllocator.bf b/BeefLibs/corlib/src/BumpAllocator.bf index d2f91889..8cffb8c3 100644 --- a/BeefLibs/corlib/src/BumpAllocator.bf +++ b/BeefLibs/corlib/src/BumpAllocator.bf @@ -259,6 +259,18 @@ namespace System } } } +#else + public void* AllocTyped(Type type, int size, int align) + { + if ((DestructorHandling != .Ignore) && (type.HasDestructor)) + { + if (DestructorHandling == .Fail) + Runtime.FatalError("Destructor not allowed"); + return AllocWithDtor(size, align); + } + + return Alloc(size, align); + } #endif [SkipCall]