summaryrefslogtreecommitdiff
path: root/src/gui/widgets/skillinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/skillinfo.cpp')
-rw-r--r--src/gui/widgets/skillinfo.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/widgets/skillinfo.cpp b/src/gui/widgets/skillinfo.cpp
index 29b9510ee..721c4c98e 100644
--- a/src/gui/widgets/skillinfo.cpp
+++ b/src/gui/widgets/skillinfo.cpp
@@ -38,6 +38,7 @@
SkillInfo::SkillInfo() :
skillLevel(),
skillExp(),
+ skillMana(),
useButton(),
progress(0.0F),
color(),
@@ -93,6 +94,11 @@ void SkillInfo::update()
skillLevel = strprintf(_("Lvl: %d"), baseLevel);
}
+ if (sp)
+ skillMana = strprintf(_("Mana: -%d"), sp);
+ else
+ skillMana.clear();
+
level = baseLevel;
skillLevelWidth = -1;