hedgewars/uSound.pas
changeset 8165 9527839ad58b
parent 8145 6408c0ba4ba1
child 8168 645ee0e201a2
--- a/hedgewars/uSound.pas	Sat Dec 01 02:14:26 2012 +0100
+++ b/hedgewars/uSound.pas	Fri Nov 30 22:23:26 2012 -0500
@@ -441,7 +441,7 @@
     if (not isSoundEnabled) or fastUntilLag or ((LastVoice.snd <> sndNone) and (lastChan[LastVoice.snd] <> -1) and (Mix_Playing(lastChan[LastVoice.snd]) <> 0)) then
         exit;
     i:= 0;
-    while (i<8) and (VoiceList[i].snd = sndNone) do
+    while (i<7) and (VoiceList[i].snd = sndNone) do
         inc(i);
     
     if (VoiceList[i].snd <> sndNone) then