summaryrefslogtreecommitdiff
path: root/src/gui/windows/skilldialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/skilldialog.cpp')
-rw-r--r--src/gui/windows/skilldialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp
index 7f2d81740..8997220f1 100644
--- a/src/gui/windows/skilldialog.cpp
+++ b/src/gui/windows/skilldialog.cpp
@@ -703,6 +703,9 @@ void SkillDialog::useSkill(const SkillInfo *const info)
void SkillDialog::addSkillDuration(SkillInfo *const skill)
{
+ if (!skill)
+ return;
+
FOR_EACH (std::vector<SkillInfo*>::const_iterator, it, mDurations)
{
if ((*it)->id == skill->id)