diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-01 00:38:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-01 00:38:46 +0300 |
commit | 4a58adbb5e88e790a18f1bfdd420c88e43fe958d (patch) | |
tree | 5b25b4de3004ee4c60afe8a1dfc992ebb649957b /src/gui | |
parent | 2490ef610773ad1c7adf33a28b2fc982b2b8ee7e (diff) | |
download | manaplus-4a58adbb5e88e790a18f1bfdd420c88e43fe958d.tar.gz manaplus-4a58adbb5e88e790a18f1bfdd420c88e43fe958d.tar.bz2 manaplus-4a58adbb5e88e790a18f1bfdd420c88e43fe958d.tar.xz manaplus-4a58adbb5e88e790a18f1bfdd420c88e43fe958d.zip |
Fix skills display if mixed alwaysVisible attribute and level attribute.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windows/skilldialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp index 9a2f37d12..681ed348f 100644 --- a/src/gui/windows/skilldialog.cpp +++ b/src/gui/windows/skilldialog.cpp @@ -334,7 +334,8 @@ void SkillDialog::loadXmlFile(const std::string &fileName) } std::string icon = XML::getProperty(node, "icon", ""); - const int level = XML::getProperty(node, "level", 0); + const int level = skill->alwaysVisible + ? 0 : XML::getProperty(node, "level", 0); SkillData *data = skill->getData(level); if (!data) data = new SkillData(); |