summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-05-27 19:43:36 +0300
committerAndrei Karas <akaras@inbox.ru>2011-05-27 19:43:36 +0300
commit5b72d1606316a05fb0121b4244583b3435ea0db8 (patch)
tree14ccdadbd5319d27335657fae7ca348ab1ad268f /src/client.cpp
parent5c0b932b4c3dcd339d0ef123c24fb7de427162d5 (diff)
downloadManaVerse-5b72d1606316a05fb0121b4244583b3435ea0db8.tar.gz
ManaVerse-5b72d1606316a05fb0121b4244583b3435ea0db8.tar.bz2
ManaVerse-5b72d1606316a05fb0121b4244583b3435ea0db8.tar.xz
ManaVerse-5b72d1606316a05fb0121b4244583b3435ea0db8.zip
Call cleanOrphans after disconnecting from server.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 29c464180..d512ac6e4 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -793,6 +793,9 @@ int Client::exec()
{
delete game;
game = 0;
+ ResourceManager *resman = ResourceManager::getInstance();
+ if (resman)
+ resman->cleanOrphans();
}
mOldState = mState;