aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-16 14:10:48 -0700
committerChris Robinson <[email protected]>2019-09-16 14:10:48 -0700
commit10a841cd7e2e3b5115fe86ce40ee9049318dfd8f (patch)
tree6de77db77f125801956ba41abf681af59c6c6d0c /alc/alu.cpp
parent2c5c5a5397883602ca2aec4f34f9bd2c085779b3 (diff)
Avoid an unused variable
Diffstat (limited to 'alc/alu.cpp')
-rw-r--r--alc/alu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp
index 60c8e8e2..32c52526 100644
--- a/alc/alu.cpp
+++ b/alc/alu.cpp
@@ -1326,7 +1326,7 @@ void ProcessParamUpdates(ALCcontext *ctx, const ALeffectslotArray &slots,
auto calc_params = [ctx,force](ALvoice &voice) -> void
{
- if(ALuint sid{voice.mSourceID.load(std::memory_order_acquire)})
+ if(voice.mSourceID.load(std::memory_order_acquire) != 0)
CalcSourceParams(&voice, ctx, force);
};
std::for_each(voices.begin(), voices.end(), calc_params);