aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alEffect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32/alEffect.cpp')
-rw-r--r--OpenAL32/alEffect.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alEffect.cpp b/OpenAL32/alEffect.cpp
index 51474af0..a2a40ac5 100644
--- a/OpenAL32/alEffect.cpp
+++ b/OpenAL32/alEffect.cpp
@@ -183,7 +183,7 @@ void FreeEffect(ALCdevice *device, ALeffect *effect)
ALsizei lidx = id >> 6;
ALsizei slidx = id & 0x3f;
- effect->~ALeffect();
+ al::destroy_at(effect);
device->EffectList[lidx].FreeMask |= 1_u64 << slidx;
}
@@ -518,7 +518,7 @@ EffectSubList::~EffectSubList()
while(usemask)
{
ALsizei idx = CTZ64(usemask);
- Effects[idx].~ALeffect();
+ al::destroy_at(Effects+idx);
usemask &= ~(1_u64 << idx);
}
FreeMask = ~usemask;