summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-13 00:57:07 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-13 00:57:07 +0300
commit84a3ff2804a2df97a9b95d033b2c35de73271972 (patch)
treed880b4ebe54674c8f3280c3d698fd4b3b0955563 /src/client.cpp
parent68a06297d94c0a2780b0bbb4070813f931cdfc24 (diff)
downloadplus-84a3ff2804a2df97a9b95d033b2c35de73271972.tar.gz
plus-84a3ff2804a2df97a9b95d033b2c35de73271972.tar.bz2
plus-84a3ff2804a2df97a9b95d033b2c35de73271972.tar.xz
plus-84a3ff2804a2df97a9b95d033b2c35de73271972.zip
also clear resource cache if switching servers.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 705670277..168dd3df9 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1209,7 +1209,7 @@ int Client::gameExec()
{
BLOCK_START("Client::gameExec STATE_CHOOSE_SERVER")
logger->log1("State: CHOOSE SERVER");
- const ResourceManager *const resman
+ ResourceManager *const resman
= ResourceManager::getInstance();
if (mOptions.dataPath.empty())
{
@@ -1235,6 +1235,8 @@ int Client::gameExec()
+ mUpdatesDir + "/local/");
}
+ resman->clearCache();
+
loginData.clearUpdateHost();
serverVersion = 0;