From e8296254947b82828e89674cdd2b5818e42ba1c9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 Apr 2013 18:38:39 +0300 Subject: possible fix issue with forgotten settings if game disconnected by error. --- src/client.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index 9431c5c55..4b5e1e2e3 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1673,6 +1673,9 @@ int Client::gameExec() case STATE_ERROR: BLOCK_START("Client::gameExec STATE_ERROR") + config.write(); + if (mOldState == STATE_GAME) + serverConfig.write(); logger->log1("State: ERROR"); logger->log("Error: %s\n", errorMessage.c_str()); mCurrentDialog = new OkDialog(_("Error"), -- cgit v1.2.3-70-g09d2