aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-03-22 11:35:08 -0700
committerChris Robinson <[email protected]>2020-03-22 11:35:08 -0700
commitbe1584ab47f240c49f063d3094e2f5d5dbea8f4d (patch)
treecf0546e71b437f8c386ca6dee8749bbf63e2ed4f
parentef663f13c096bddde37451697849cfc3674938a5 (diff)
Avoid assigning in a conditional expression
-rw-r--r--alc/alu.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp
index d3a0a858..17eff6a5 100644
--- a/alc/alu.cpp
+++ b/alc/alu.cpp
@@ -1695,7 +1695,9 @@ void ProcessVoiceChanges(ALCcontext *ctx)
}
if(sendevt && (enabledevt&EventType_SourceStateChange))
SendSourceStateEvent(ctx, cur->mSourceID, cur->mState);
- } while((next=cur->mNext.load(std::memory_order_acquire)));
+
+ next = cur->mNext.load(std::memory_order_acquire);
+ } while(next);
ctx->mCurrentVoiceChange.store(cur, std::memory_order_release);
}