diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-07-04 00:02:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-07-04 00:02:38 +0300 |
commit | d1d205fbe0c2d63bbd08742c56f00852ccc0523b (patch) | |
tree | 36150394c5ef1e335834b0bb3dd0b54bf7682eaf /src | |
parent | 66fa2d9c5cdb82808ed24fdd9f681679a7b99986 (diff) | |
download | mv-d1d205fbe0c2d63bbd08742c56f00852ccc0523b.tar.gz mv-d1d205fbe0c2d63bbd08742c56f00852ccc0523b.tar.bz2 mv-d1d205fbe0c2d63bbd08742c56f00852ccc0523b.tar.xz mv-d1d205fbe0c2d63bbd08742c56f00852ccc0523b.zip |
fix storage crash on exit.
Diffstat (limited to 'src')
-rw-r--r-- | src/client.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client.cpp b/src/client.cpp index d9f57854f..9eb11d663 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -766,9 +766,6 @@ void Client::gameClear() SDL_RemoveTimer(mLogicCounterId); SDL_RemoveTimer(mSecondsCounterId); - if (Net::getInventoryHandler()) - Net::getInventoryHandler()->clear(); - // Unload XML databases CharDB::unload(); ColorDB::unload(); @@ -814,6 +811,9 @@ void Client::gameClear() delete gui; gui = nullptr; + if (Net::getInventoryHandler()) + Net::getInventoryHandler()->clear(); + if (logger) logger->log1("Quitting3"); |