hedgewars/uSound.pas
changeset 11537 bf86c6cb9341
parent 11512 bd9a2f1b0080
child 11668 0427a9b6457b
child 11770 10860d4bca22
--- a/hedgewars/uSound.pas	Sun Jan 24 00:02:57 2016 +0100
+++ b/hedgewars/uSound.pas	Sun Jan 31 16:07:14 2016 +0300
@@ -290,10 +290,10 @@
             exit(AskForVoicepack('Default'));
         end;
 
-    while (voicepacks[i].name <> name) and (voicepacks[i].name <> '') do
+    while (voicepacks[i].name <> name) and (voicepacks[i].name <> '') and (i < cMaxTeams) do
         begin
         inc(i);
-        TryDo(i <= cMaxTeams, 'Engine bug: AskForVoicepack i > cMaxTeams', true)
+        //TryDo(i <= cMaxTeams, 'Engine bug: AskForVoicepack i > cMaxTeams', true)
         end;
 
     voicepacks[i].name:= name;