Update LastVoice when switching to fallback voice
authorWuzzy <Wuzzy2@mail.ru>
Fri, 02 Nov 2018 01:34:21 +0100
changeset 14068 859a41b137d4
parent 14067 3f21f27c6564
child 14069 abb42ba345b6
Update LastVoice when switching to fallback voice
hedgewars/uSound.pas
--- a/hedgewars/uSound.pas	Fri Nov 02 02:31:01 2018 +0300
+++ b/hedgewars/uSound.pas	Fri Nov 02 01:34:21 2018 +0100
@@ -575,7 +575,10 @@
                 begin
                 tempSnd := GetFallbackV(snd);
                 if tempSnd <> sndNone then
+                    begin
                     snd := tempSnd;
+                    LastVoice.snd := tempSnd;
+                    end;
                 s:= cPathz[Soundz[snd].Path] + '/' + voicepack^.name + '/' + Soundz[snd].FileName;
                 end;
             WriteToConsole(msgLoading + s + ' ');