diff options
-rw-r--r-- | src/gui/skilldialog.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp index 3f5c8ca0..0b964cc8 100644 --- a/src/gui/skilldialog.cpp +++ b/src/gui/skilldialog.cpp @@ -264,12 +264,11 @@ SkillEntry::SkillEntry(struct SkillInfo *info) : mInfo(info), if (!info->icon.empty()) mIcon = new Icon(info->icon); + else + mIcon = new Icon("graphics/gui/unknown-item.png"); - if (mIcon) - { - mIcon->setPosition(1, 0); - add(mIcon); - } + mIcon->setPosition(1, 0); + add(mIcon); mNameLabel->setPosition(35, 0); add(mNameLabel); |