summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/windows/skilldialog.cpp6
-rw-r--r--src/gui/windows/skilldialog.h4
2 files changed, 6 insertions, 4 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)
{
diff --git a/src/gui/windows/skilldialog.h b/src/gui/windows/skilldialog.h
index b93fda1b9..79c3ecc9c 100644
--- a/src/gui/windows/skilldialog.h
+++ b/src/gui/windows/skilldialog.h
@@ -149,8 +149,8 @@ class SkillDialog final : public Window,
static void useSkill(const SkillInfo *const info,
const AutoTarget autoTarget,
int level,
- const bool withText = false,
- const std::string &text = "");
+ const bool withText,
+ const std::string &text);
SkillData *getSkillData(const int id) const;