diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-16 18:38:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-16 18:38:39 +0300 |
commit | e8296254947b82828e89674cdd2b5818e42ba1c9 (patch) | |
tree | 570b6345d4fb131fd3da29700694429c95ddc0c3 /src/client.cpp | |
parent | 0e51a58811c3d6e6a08dd66a2c2ab33481b27cde (diff) | |
download | mv-e8296254947b82828e89674cdd2b5818e42ba1c9.tar.gz mv-e8296254947b82828e89674cdd2b5818e42ba1c9.tar.bz2 mv-e8296254947b82828e89674cdd2b5818e42ba1c9.tar.xz mv-e8296254947b82828e89674cdd2b5818e42ba1c9.zip |
possible fix issue with forgotten settings if game disconnected by error.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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"), |