Files
openal-soft/core/effectslot.cpp
Chris Robinson 692d7cb7b8 Don't over-allocate the active effect slot array
Rather than hacking in the sorted array by assuming an equal length array after
the end of the active array, include it as the back half of the array.
2024-03-21 12:54:52 -07:00

16 lines
280 B
C++

#include "config.h"
#include "effectslot.h"
#include <cstddef>
#include "almalloc.h"
#include "context.h"
std::unique_ptr<EffectSlotArray> EffectSlot::CreatePtrArray(size_t count)
{
return std::unique_ptr<EffectSlotArray>{new(FamCount{count}) EffectSlotArray(count)};
}