summaryrefslogtreecommitdiff
path: root/src/gui/windows/skilldialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-22 21:30:14 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-22 21:30:14 +0300
commite3f651e65f5a486f47ae81fe3ba5e68e8c48f79e (patch)
tree643ce9eb26f4da078de5afe1d3e8b40eba901f23 /src/gui/windows/skilldialog.cpp
parent51583912458f8eb0b080edabf3af5f384a205055 (diff)
downloadmanaverse-e3f651e65f5a486f47ae81fe3ba5e68e8c48f79e.tar.gz
manaverse-e3f651e65f5a486f47ae81fe3ba5e68e8c48f79e.tar.bz2
manaverse-e3f651e65f5a486f47ae81fe3ba5e68e8c48f79e.tar.xz
manaverse-e3f651e65f5a486f47ae81fe3ba5e68e8c48f79e.zip
Allow drag skill with any selected level to shortcuts window.
Diffstat (limited to 'src/gui/windows/skilldialog.cpp')
-rw-r--r--src/gui/windows/skilldialog.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp
index 9949ba859..44d02b573 100644
--- a/src/gui/windows/skilldialog.cpp
+++ b/src/gui/windows/skilldialog.cpp
@@ -562,7 +562,8 @@ void SkillDialog::widgetResized(const Event &event)
}
void SkillDialog::useItem(const int itemId,
- const AutoTarget autoTarget) const
+ const AutoTarget autoTarget,
+ const int level) const
{
const std::map<int, SkillInfo*>::const_iterator
it = mSkills.find(itemId - SKILL_MIN_ID);
@@ -571,7 +572,7 @@ void SkillDialog::useItem(const int itemId,
const SkillInfo *const info = (*it).second;
// +++ need add skill level here
- useSkill(info, autoTarget, 0);
+ useSkill(info, autoTarget, level);
}
void SkillDialog::updateTabSelection()