From d1d205fbe0c2d63bbd08742c56f00852ccc0523b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 4 Jul 2013 00:02:38 +0300 Subject: fix storage crash on exit. --- src/client.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/client.cpp') 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"); -- cgit v1.2.3-70-g09d2