summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r--src/gui/popupmenu.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp
index 5e5f310dc..d37e8f351 100644
--- a/src/gui/popupmenu.cpp
+++ b/src/gui/popupmenu.cpp
@@ -49,6 +49,7 @@
#include "gui/ministatuswindow.h"
#include "gui/outfitwindow.h"
#include "gui/selldialog.h"
+#include "gui/skilldialog.h"
#include "gui/socialwindow.h"
#include "gui/textcommandeditor.h"
#include "gui/textdialog.h"
@@ -1109,10 +1110,14 @@ void PopupMenu::handleLink(const std::string &link,
}
}
}
- else if (spellManager)
+ else if (mItemId < SKILL_MIN_ID && spellManager)
{
spellManager->useItem(mItemId);
}
+ else if (skillDialog)
+ {
+ skillDialog->useItem(mItemId);
+ }
}
else if (link == "chat")
{