summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-30 23:21:43 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-30 23:21:43 +0300
commit75ca03c95c90064e67fa9eaddb4c609196dd3a27 (patch)
treeedc1baacc2d5152ec325c9b68a19636e5c297471 /src/gui
parentef8ef35d28daa3ea7dd542078ac9c0d3f7a9a5e2 (diff)
downloadmanaplus-75ca03c95c90064e67fa9eaddb4c609196dd3a27.tar.gz
manaplus-75ca03c95c90064e67fa9eaddb4c609196dd3a27.tar.bz2
manaplus-75ca03c95c90064e67fa9eaddb4c609196dd3a27.tar.xz
manaplus-75ca03c95c90064e67fa9eaddb4c609196dd3a27.zip
Add missing check.
Diffstat (limited to 'src/gui')
-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,