diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-07-08 17:36:03 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-07-08 17:37:53 -0600 |
commit | 9fbc19f640e326a2a55b6d64e15b687e56d15fc7 (patch) | |
tree | 30db024959bc6715abf182004ff64e9cbb57eaf5 /src/gui/skilldialog.cpp | |
parent | 6c68287a7a66ba6933bc4dbfe43f6c4761e683c1 (diff) | |
download | mana-9fbc19f640e326a2a55b6d64e15b687e56d15fc7.tar.gz mana-9fbc19f640e326a2a55b6d64e15b687e56d15fc7.tar.bz2 mana-9fbc19f640e326a2a55b6d64e15b687e56d15fc7.tar.xz mana-9fbc19f640e326a2a55b6d64e15b687e56d15fc7.zip |
Fall back on unknown-item.png for skill icons
Diffstat (limited to 'src/gui/skilldialog.cpp')
-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); |