From 0fa3de24e2e6931a07cbc1fb3dadfff9091250cf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 16 Dec 2012 18:50:20 +0300 Subject: Separate in skills skill info and skill data for future usage. --- src/gui/widgets/itemshortcutcontainer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets') 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); } } -- cgit v1.2.3-70-g09d2