From 4a58adbb5e88e790a18f1bfdd420c88e43fe958d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 1 Mar 2015 00:38:46 +0300 Subject: Fix skills display if mixed alwaysVisible attribute and level attribute. --- src/gui/windows/skilldialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui/windows') 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(); -- cgit v1.2.3-70-g09d2