From 84a3ff2804a2df97a9b95d033b2c35de73271972 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 13 May 2013 00:57:07 +0300 Subject: also clear resource cache if switching servers. --- src/client.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/client.cpp') 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; -- cgit v1.2.3-60-g2f50