summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/widgets/skilllistbox.h2
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);
}