aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/mixer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c
index 8504d388..640bfe88 100644
--- a/Alc/mixer.c
+++ b/Alc/mixer.c
@@ -715,7 +715,7 @@ ALvoid MixSource(ALsource *Source, ALuint SamplesToDo,
/* Handle looping sources */
if(DataPosInt >= LoopEnd)
{
- if(BuffersPlayed < (Source->BuffersInQueue-1))
+ if(BufferListItem->next)
{
BufferListItem = BufferListItem->next;
BuffersPlayed++;