diff options
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r-- | Alc/mixer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c index a6fe7522..af50c72e 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -659,13 +659,13 @@ ALvoid MixSource(ALsource *Source, ALCdevice *Device, ALuint SamplesToDo) break; } - if(Looping) + if(BufferListIter->prev) + BufferListIter = BufferListIter->prev; + else { while(BufferListIter->next) BufferListIter = BufferListIter->next; } - else - BufferListIter = BufferListIter->prev; if(BufferListIter->buffer) { |