From e3b8f8fe272503ef7f738da2f577f68b0fe16eeb Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 8 Oct 2021 11:05:36 -0700 Subject: Make a construct_at method amd use it --- al/effect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'al/effect.cpp') diff --git a/al/effect.cpp b/al/effect.cpp index 1d2b9b3c..217cc1c2 100644 --- a/al/effect.cpp +++ b/al/effect.cpp @@ -187,7 +187,7 @@ ALeffect *AllocEffect(ALCdevice *device) auto slidx = static_cast(al::countr_zero(sublist->FreeMask)); ASSUME(slidx < 64); - ALeffect *effect{::new (sublist->Effects + slidx) ALeffect{}}; + ALeffect *effect{al::construct_at(sublist->Effects + slidx)}; InitEffectParams(effect, AL_EFFECT_NULL); /* Add 1 to avoid effect ID 0. */ -- cgit v1.2.3