DEADSOFTWARE

game: g_FatalError actually ends the game
[d2df-sdl.git] / src / game / g_game.pas
index 9112b7f9eb91eb0b6e49942a72038f800961d8d6..82d2981743c307471a549bd6a6e8ee65db137f58 100644 (file)
@@ -4223,6 +4223,7 @@ begin
   e_WriteLog(Format(_lc[I_FATAL_ERROR], [Text]), TMsgType.Warning);
 
   gExit := EXIT_SIMPLE;
+  if gGameOn then EndGame;
 end;
 
 procedure g_SimpleError(Text: String);