diff options
Diffstat (limited to 'src/gui/skilldialog.cpp')
-rw-r--r-- | src/gui/skilldialog.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp index d6fc3656c..0653a5e0d 100644 --- a/src/gui/skilldialog.cpp +++ b/src/gui/skilldialog.cpp @@ -168,6 +168,7 @@ class SkillListBox final : public ListBox if (!skill) return; dragDrop.dragSkill(skill, DRAGDROP_SOURCE_SKILLS); + dragDrop.setItem(skill->id + SKILL_MIN_ID); } ListBox::mouseDragged(event); } @@ -609,6 +610,11 @@ SkillInfo* SkillDialog::getSkill(const int id) return mSkills[id]; } +SkillInfo* SkillDialog::getSkillByItem(const int itemId) +{ + return mSkills[itemId - SKILL_MIN_ID]; +} + void SkillDialog::widgetResized(const gcn::Event &event) { Window::widgetResized(event); |