diff options
-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"); |