# HG changeset patch # User Wuzzy # Date 1541118861 -3600 # Node ID 859a41b137d46fe8c5d5d2b5cc25d10e37b6eaf9 # Parent 3f21f27c65645ba49d54bdd2e84a06423ec1fe9f Update LastVoice when switching to fallback voice diff -r 3f21f27c6564 -r 859a41b137d4 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 + ' ');