aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-08-06 01:14:37 -0700
committerChris Robinson <[email protected]>2010-08-06 01:14:37 -0700
commit56b094767bb9c797f4b0d1a456d996a0c869c089 (patch)
tree5937b28471b1a54e1a56ceee27b5e1ef75a17bc9 /Alc
parent98bc60cfb72939cfabcdd118597a02a015091756 (diff)
Remove an unnecessary check
The number of buffers played should never exceed the buffer count when playing, and the buffer list is used later on regardless
Diffstat (limited to 'Alc')
-rw-r--r--Alc/mixer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c
index 3c1f266f..3984a8b8 100644
--- a/Alc/mixer.c
+++ b/Alc/mixer.c
@@ -186,7 +186,7 @@ static void MixSource(ALsource *ALSource, ALCcontext *ALContext,
/* Get current buffer queue item */
BufferListItem = ALSource->queue;
- for(i = 0;i < BuffersPlayed && BufferListItem;i++)
+ for(i = 0;i < BuffersPlayed;i++)
BufferListItem = BufferListItem->next;
j = 0;