From 6ca8fadd583ade917a07da90c038ce62220593f7 Mon Sep 17 00:00:00 2001 From: Chris Robinson <chris.kcat@gmail.com> Date: Thu, 12 Sep 2019 12:14:23 -0700 Subject: Fix counting free objects --- al/auxeffectslot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'al/auxeffectslot.cpp') diff --git a/al/auxeffectslot.cpp b/al/auxeffectslot.cpp index 85c07c89..4dc38ecc 100644 --- a/al/auxeffectslot.cpp +++ b/al/auxeffectslot.cpp @@ -164,7 +164,7 @@ bool EnsureEffectSlots(ALCcontext *context, size_t needed) size_t count{std::accumulate(context->mEffectSlotList.cbegin(), context->mEffectSlotList.cend(), size_t{0}, [](size_t cur, const EffectSlotSubList &sublist) noexcept -> size_t - { return cur + static_cast<ALuint>(POPCNT64(~sublist.FreeMask)); } + { return cur + static_cast<ALuint>(POPCNT64(sublist.FreeMask)); } )}; while(needed > count) -- cgit v1.2.3