From 7e0a97d2521b9ce57003176e82a0b5564aa003c2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Jul 2012 23:26:59 +0300 Subject: Fix more code style and additional warnings. --- src/gui/skilldialog.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/gui/skilldialog.cpp') diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp index 47de3b381..aa8ea716f 100644 --- a/src/gui/skilldialog.cpp +++ b/src/gui/skilldialog.cpp @@ -561,10 +561,13 @@ void SkillInfo::setIcon(const std::string &iconPath) void SkillInfo::update() { - int baseLevel = PlayerInfo::getStatBase(id); - int effLevel = PlayerInfo::getStatEffective(id); + int baseLevel = PlayerInfo::getStatBase( + static_cast(id)); + int effLevel = PlayerInfo::getStatEffective( + static_cast(id)); - std::pair exp = PlayerInfo::getStatExperience(id); + std::pair exp = PlayerInfo::getStatExperience( + static_cast(id)); if (!modifiable && baseLevel == 0 && effLevel == 0 && exp.second == 0) { -- cgit v1.2.3-60-g2f50