diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-13 22:12:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-13 22:12:58 +0300 |
commit | 3f87e3c0f191d72c3295955736a057430b3ab661 (patch) | |
tree | ce357b5b97c82015ea90e40bbfe302111a981ecf /src/gui/widgets | |
parent | d2f4bf9efb3009bde48b3f33ed81897693539503 (diff) | |
download | manaplus-3f87e3c0f191d72c3295955736a057430b3ab661.tar.gz manaplus-3f87e3c0f191d72c3295955736a057430b3ab661.tar.bz2 manaplus-3f87e3c0f191d72c3295955736a057430b3ab661.tar.xz manaplus-3f87e3c0f191d72c3295955736a057430b3ab661.zip |
In skill dialog dont show skill popup on empty place.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/skilllistbox.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/widgets/skilllistbox.h b/src/gui/widgets/skilllistbox.h index b386b4851..94485f5cf 100644 --- a/src/gui/widgets/skilllistbox.h +++ b/src/gui/widgets/skilllistbox.h @@ -195,6 +195,8 @@ class SkillListBox final : public ListBox return; const SkillInfo *const skill = getSkillByEvent(event); + if (!skill) + return; skillPopup->show(skill); skillPopup->position(viewport->mMouseX, viewport->mMouseY); } |