aboutsummaryrefslogtreecommitdiffstats
path: root/alc/effectslot.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-10-08 11:05:36 -0700
committerChris Robinson <[email protected]>2021-10-08 11:05:36 -0700
commite3b8f8fe272503ef7f738da2f577f68b0fe16eeb (patch)
treedbcedc04132f1471f651984f9b5726678cca3443 /alc/effectslot.cpp
parent8da4eaff29972aca8932c75084d1f1698da5e762 (diff)
Make a construct_at method amd use it
Diffstat (limited to 'alc/effectslot.cpp')
-rw-r--r--alc/effectslot.cpp2
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()