summaryrefslogtreecommitdiff
path: root/src/gui/windows/skilldialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/skilldialog.cpp')
-rw-r--r--src/gui/windows/skilldialog.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp
index 5df9428ce..2904ea525 100644
--- a/src/gui/windows/skilldialog.cpp
+++ b/src/gui/windows/skilldialog.cpp
@@ -176,7 +176,9 @@ void SkillDialog::action(const ActionEvent &event)
const SkillInfo *const info = tab->getSelectedInfo();
useSkill(info,
fromBool(config.getBoolValue("skillAutotarget"), AutoTarget),
- info->customSelectedLevel);
+ info->customSelectedLevel,
+ info->useTextParameter,
+ std::string());
}
}
else if (eventId == "close")
@@ -626,7 +628,7 @@ void SkillDialog::useItem(const int itemId,
const SkillInfo *const info = (*it).second;
if (data.empty())
{
- useSkill(info, autoTarget, level);
+ useSkill(info, autoTarget, level, false, std::string());
}
else if (data.size() > 1)
{