hedgewars/uSound.pas
changeset 5922 7e7774e7be8c
parent 5921 43cb3139cebe
child 5932 5164d17b6374
child 6072 e3dc802965d6
--- a/hedgewars/uSound.pas	Thu Sep 15 18:54:16 2011 -0400
+++ b/hedgewars/uSound.pas	Fri Sep 16 01:12:57 2011 +0200
@@ -290,7 +290,7 @@
 procedure AddVoice(snd: TSound; voicepack: PVoicepack);
 var i : LongInt;
 begin
-    if (not isSoundEnabled) or fastUntilLag or ((LastSound.snd = snd) and  (LastSound.voicepack = voicepack)) then exit;
+    if (not isSoundEnabled) or fastUntilLag or ((LastVoice.snd = snd) and  (LastVoice.voicepack = voicepack)) then exit;
     i:= 0;
     while (i<8) and (VoiceList[i].snd <> sndNone) do inc(i);