hedgewars/uIO.pas
changeset 9301 c5d1c8259ef4
parent 9178 c0902317c823
child 9521 8054d9d775fd
child 9682 aa2431ed87b2
child 9998 736015b847e3
--- a/hedgewars/uIO.pas	Sat Jun 29 01:56:16 2013 +0200
+++ b/hedgewars/uIO.pas	Sat Jun 29 02:42:15 2013 +0200
@@ -411,6 +411,9 @@
 procedure chFatalError(var s: shortstring);
 begin
     SendIPC('E' + s);
+    // TODO: should we try to clean more stuff here?
+    SDL_Quit;
+    halt(2)
 end;
 
 procedure doPut(putX, putY: LongInt; fromAI: boolean);