summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/windows/skilldialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp
index 20d95a055..9f11605ef 100644
--- a/src/gui/windows/skilldialog.cpp
+++ b/src/gui/windows/skilldialog.cpp
@@ -201,6 +201,8 @@ void SkillDialog::action(const ActionEvent &event)
if (tab != nullptr)
{
const SkillInfo *const info = tab->getSelectedInfo();
+ if (info == nullptr)
+ return;
useSkill(info,
fromBool(config.getBoolValue("skillAutotarget"), AutoTarget),
info->customSelectedLevel,