diff options
Diffstat (limited to 'alc')
-rw-r--r-- | alc/alu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp index 869346c4..3cf7f4cf 100644 --- a/alc/alu.cpp +++ b/alc/alu.cpp @@ -1327,8 +1327,8 @@ void ProcessParamUpdates(ALCcontext *ctx, const ALeffectslotArray &slots, { bool force{CalcContextParams(ctx)}; force |= CalcListenerParams(ctx); - force |= std::accumulate(slots.begin(), slots.end(), bool{false}, - [ctx](bool force, ALeffectslot *slot) -> bool + force = std::accumulate(slots.begin(), slots.end(), force, + [ctx](const bool force, ALeffectslot *slot) -> bool { return CalcEffectSlotParams(slot, ctx) | force; } ); |