aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r--alc/alc.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index 8ee762d5..7964a2b3 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -2422,8 +2422,7 @@ void ALCcontext::init()
{
if(DefaultEffect.type != AL_EFFECT_NULL && mDevice->Type == Playback)
{
- void *ptr{al_calloc(16, sizeof(ALeffectslot))};
- mDefaultSlot = std::unique_ptr<ALeffectslot>{new (ptr) ALeffectslot{}};
+ mDefaultSlot = std::unique_ptr<ALeffectslot>{new ALeffectslot{}};
if(InitEffectSlot(mDefaultSlot.get()) == AL_NO_ERROR)
aluInitEffectPanning(mDefaultSlot.get(), mDevice.get());
else