summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-16 18:50:20 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-16 22:33:53 +0300
commit0fa3de24e2e6931a07cbc1fb3dadfff9091250cf (patch)
treecf8829ca7d273b2464f724308c2fd419f407cc61 /src/gui/widgets
parentade168344165534061b8f184866e2808af7f5d48 (diff)
downloadmanaplus-0fa3de24e2e6931a07cbc1fb3dadfff9091250cf.tar.gz
manaplus-0fa3de24e2e6931a07cbc1fb3dadfff9091250cf.tar.bz2
manaplus-0fa3de24e2e6931a07cbc1fb3dadfff9091250cf.tar.xz
manaplus-0fa3de24e2e6931a07cbc1fb3dadfff9091250cf.zip
Separate in skills skill info and skill data for future usage.
Diffstat (limited to 'src/gui/widgets')
-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 c11d2a2e0..520a92ea6 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->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->shortName, itemX + 2,
+ g->drawText(skill->data.shortName, itemX + 2,
itemY + mBoxHeight / 2, gcn::Graphics::LEFT);
}
}