diff options
Diffstat (limited to 'alc/effectslot.cpp')
-rw-r--r-- | alc/effectslot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/effectslot.cpp b/alc/effectslot.cpp index 21084f39..51fb8d46 100644 --- a/alc/effectslot.cpp +++ b/alc/effectslot.cpp @@ -15,7 +15,7 @@ EffectSlotArray *EffectSlot::CreatePtrArray(size_t count) noexcept * space to store a sorted list during mixing. */ void *ptr{al_calloc(alignof(EffectSlotArray), EffectSlotArray::Sizeof(count*2))}; - return new(ptr) EffectSlotArray{count}; + return al::construct_at(static_cast<EffectSlotArray*>(ptr), count); } EffectSlot::~EffectSlot() |