hedgewars/uSound.pas
changeset 13886 9d3ebcac7d90
parent 13872 f01798038c2e
child 13996 350adfa0e896
--- 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