summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 89fa1dc4e..d9f57854f 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -73,6 +73,7 @@
#include "net/gamehandler.h"
#include "net/generalhandler.h"
#include "net/guildhandler.h"
+#include "net/inventoryhandler.h"
#include "net/loginhandler.h"
#include "net/net.h"
#include "net/npchandler.h"
@@ -765,6 +766,9 @@ void Client::gameClear()
SDL_RemoveTimer(mLogicCounterId);
SDL_RemoveTimer(mSecondsCounterId);
+ if (Net::getInventoryHandler())
+ Net::getInventoryHandler()->clear();
+
// Unload XML databases
CharDB::unload();
ColorDB::unload();