this should probably exit -1 - pas2c was complaining about uninitialised var
authornemo
Fri, 05 Oct 2018 16:53:36 -0400
changeset 13865 9d3ebcac7d90
parent 13864 f68bb13f7bc7
child 13866 b15ad95320fe
this should probably exit -1 - pas2c was complaining about uninitialised var
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