diff options
Diffstat (limited to 'alc')
-rw-r--r-- | alc/mixvoice.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/alc/mixvoice.cpp b/alc/mixvoice.cpp index c696f114..d6be174e 100644 --- a/alc/mixvoice.cpp +++ b/alc/mixvoice.cpp @@ -820,7 +820,8 @@ void ALvoice::mix(State vstate, ALCcontext *Context, const ALuint SamplesToDo) ++buffers_done; BufferListItem = BufferListItem->mNext.load(std::memory_order_relaxed); - if(!BufferListItem && !(BufferListItem=BufferLoopItem)) + if(!BufferListItem) BufferListItem = BufferLoopItem; + if(!BufferListItem) { if LIKELY(vstate == ALvoice::Playing) vstate = ALvoice::Stopped; |