From 7cd52b28579274fde27f6f8d9b945a4eff7adf36 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 26 Sep 2010 01:29:28 -0700 Subject: Clarify a check --- Alc/mixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc') 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++; -- cgit v1.2.3