summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp6
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");