summaryrefslogtreecommitdiff
path: root/src/gui/widgets/itemshortcutcontainer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-16 22:03:21 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-16 22:33:53 +0300
commit4520aa5631f5dfa9d941231a11c2ba782f456dd0 (patch)
treea01027e50987230d63aaeeccc65c074c3a6dca7c /src/gui/widgets/itemshortcutcontainer.cpp
parent99fc034012a3c97805014d578c8bb910beabfbc5 (diff)
downloadmv-4520aa5631f5dfa9d941231a11c2ba782f456dd0.tar.gz
mv-4520aa5631f5dfa9d941231a11c2ba782f456dd0.tar.bz2
mv-4520aa5631f5dfa9d941231a11c2ba782f456dd0.tar.xz
mv-4520aa5631f5dfa9d941231a11c2ba782f456dd0.zip
Allow different skill images/names etc for each skill level.
Diffstat (limited to 'src/gui/widgets/itemshortcutcontainer.cpp')
-rw-r--r--src/gui/widgets/itemshortcutcontainer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/itemshortcutcontainer.cpp b/src/gui/widgets/itemshortcutcontainer.cpp
index 520a92ea6..2e3d60d65 100644
--- a/src/gui/widgets/itemshortcutcontainer.cpp
+++ b/src/gui/widgets/itemshortcutcontainer.cpp
@@ -200,7 +200,7 @@ void ItemShortcutContainer::draw(gcn::Graphics *graphics)
itemId - SKILL_MIN_ID);
if (skill)
{
- Image *const image = skill->data.icon;
+ Image *const image = skill->data->icon;
if (image)
{
@@ -208,7 +208,7 @@ void ItemShortcutContainer::draw(gcn::Graphics *graphics)
g->drawImage(image, itemX, itemY);
}
- g->drawText(skill->data.shortName, itemX + 2,
+ g->drawText(skill->data->shortName, itemX + 2,
itemY + mBoxHeight / 2, gcn::Graphics::LEFT);
}
}