summaryrefslogtreecommitdiff
path: root/src/commands.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/commands.cpp
parent68a06297d94c0a2780b0bbb4070813f931cdfc24 (diff)
downloadmv-84a3ff2804a2df97a9b95d033b2c35de73271972.tar.gz
mv-84a3ff2804a2df97a9b95d033b2c35de73271972.tar.bz2
mv-84a3ff2804a2df97a9b95d033b2c35de73271972.tar.xz
mv-84a3ff2804a2df97a9b95d033b2c35de73271972.zip
also clear resource cache if switching servers.
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 2421e63f4..ab2558e2c 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -359,10 +359,7 @@ impHandler0(clear)
impHandler0(cleanGraphics)
{
- ResourceManager *const resman = ResourceManager::getInstance();
- resman->cleanProtected();
- while (resman->cleanOrphans(true))
- continue;
+ ResourceManager::getInstance()->clearCache();
if (debugChatTab)
{