summaryrefslogtreecommitdiff
path: root/src/resources/colordb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-03 02:21:07 +0200
committerAndrei Karas <akaras@inbox.ru>2011-03-03 02:21:07 +0200
commit8627c7745f47492ab349da6a74e98e3d5813418f (patch)
tree8c6abbe632dfb91e856e06fadcbbac1b72f25416 /src/resources/colordb.cpp
parent22f79fd0d623c8e11994905534f53da267e22935 (diff)
downloadmanaplus-8627c7745f47492ab349da6a74e98e3d5813418f.tar.gz
manaplus-8627c7745f47492ab349da6a74e98e3d5813418f.tar.bz2
manaplus-8627c7745f47492ab349da6a74e98e3d5813418f.tar.xz
manaplus-8627c7745f47492ab349da6a74e98e3d5813418f.zip
Add some protections to disable advanced features for old servers like tmw.
Diffstat (limited to 'src/resources/colordb.cpp')
-rw-r--r--src/resources/colordb.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/resources/colordb.cpp b/src/resources/colordb.cpp
index 79622e8ed..dce051403 100644
--- a/src/resources/colordb.cpp
+++ b/src/resources/colordb.cpp
@@ -20,6 +20,7 @@
#include "resources/colordb.h"
+#include "client.h"
#include "log.h"
#include "utils/xml.h"
@@ -40,7 +41,8 @@ void ColorDB::load()
unload();
loadHair();
- loadColorLists();
+ if (serverVersion >= 1)
+ loadColorLists();
}
void ColorDB::loadHair()
@@ -132,6 +134,7 @@ void ColorDB::unload()
logger->log1("Unloading color database...");
mHairColors.clear();
+ mColorLists.clear();
mLoaded = false;
}