aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
Diffstat (limited to 'alc')
-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);
}