diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-30 23:21:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-30 23:21:43 +0300 |
commit | 75ca03c95c90064e67fa9eaddb4c609196dd3a27 (patch) | |
tree | edc1baacc2d5152ec325c9b68a19636e5c297471 /src/gui | |
parent | ef8ef35d28daa3ea7dd542078ac9c0d3f7a9a5e2 (diff) | |
download | ManaVerse-75ca03c95c90064e67fa9eaddb4c609196dd3a27.tar.gz ManaVerse-75ca03c95c90064e67fa9eaddb4c609196dd3a27.tar.bz2 ManaVerse-75ca03c95c90064e67fa9eaddb4c609196dd3a27.tar.xz ManaVerse-75ca03c95c90064e67fa9eaddb4c609196dd3a27.zip |
Add missing check.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windows/skilldialog.cpp | 2 |
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, |