diff options
author | Chris Robinson <[email protected]> | 2021-10-08 11:05:36 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-10-08 11:05:36 -0700 |
commit | e3b8f8fe272503ef7f738da2f577f68b0fe16eeb (patch) | |
tree | dbcedc04132f1471f651984f9b5726678cca3443 /al/auxeffectslot.cpp | |
parent | 8da4eaff29972aca8932c75084d1f1698da5e762 (diff) |
Make a construct_at method amd use it
Diffstat (limited to 'al/auxeffectslot.cpp')
-rw-r--r-- | al/auxeffectslot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/al/auxeffectslot.cpp b/al/auxeffectslot.cpp index ad7ba41e..16e4cbea 100644 --- a/al/auxeffectslot.cpp +++ b/al/auxeffectslot.cpp @@ -279,7 +279,7 @@ ALeffectslot *AllocEffectSlot(ALCcontext *context) auto slidx = static_cast<ALuint>(al::countr_zero(sublist->FreeMask)); ASSUME(slidx < 64); - ALeffectslot *slot{::new(sublist->EffectSlots + slidx) ALeffectslot{}}; + ALeffectslot *slot{al::construct_at(sublist->EffectSlots + slidx)}; aluInitEffectPanning(&slot->mSlot, context); /* Add 1 to avoid source ID 0. */ |