X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=4735f046993612345e497337e7cf6e87e00ab436;hb=3c53030b9e20c59004046274e94eff2ee90d0ab5;hp=f176e13e37537924810553446e64f5d0609bf9ac;hpb=80aa0e4b2b060112407417a9d2896395023a21cc;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index f176e13e..4735f046 100644 --- a/src/init.c +++ b/src/init.c @@ -6440,7 +6440,13 @@ void CloseAllAndExit(int exit_value) ClosePlatformDependentStuff(); if (exit_value != 0) + { + /* fall back to default level set (current set may have caused an error) */ + SaveLevelSetup_LastSeries_Deactivate(); + + /* tell user where to find error log file which may contain more details */ NotifyUserAboutErrorFile(); + } exit(exit_value); }