From 3f87e3c0f191d72c3295955736a057430b3ab661 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 13 Nov 2015 22:12:58 +0300 Subject: In skill dialog dont show skill popup on empty place. --- src/gui/widgets/skilllistbox.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/widgets/skilllistbox.h') 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); } -- cgit v1.2.3-70-g09d2