# HG changeset patch # User nemo # Date 1538772816 14400 # Node ID 9d3ebcac7d90974c77ffe75628184daf89101965 # Parent f68bb13f7bc7328b32508f599700479dc097d916 this should probably exit -1 - pas2c was complaining about uninitialised var diff -r f68bb13f7bc7 -r 9d3ebcac7d90 hedgewars/uSound.pas --- a/hedgewars/uSound.pas Fri Oct 05 16:22:51 2018 -0400 +++ b/hedgewars/uSound.pas Fri Oct 05 16:53:36 2018 -0400 @@ -639,7 +639,7 @@ s:= cPathz[Soundz[snd].Path] + '/' + Soundz[snd].FileName; WriteToConsole(msgLoading + s + ' '); defVoicepack^.chunks[snd]:= Mix_LoadWAV_RW(rwopsOpenRead(s), 1); - if SDLCheck(defVoicepack^.chunks[snd] <> nil, 'Mix_LoadWAV_RW', true) then exit; + if SDLCheck(defVoicepack^.chunks[snd] <> nil, 'Mix_LoadWAV_RW', true) then exit(-1); WriteLnToConsole(msgOK); end; if fadems > 0 then