summaryrefslogtreecommitdiff
path: root/src/itemshortcut.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/itemshortcut.cpp')
-rw-r--r--src/itemshortcut.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/itemshortcut.cpp b/src/itemshortcut.cpp
index 138c1d12..577f76ae 100644
--- a/src/itemshortcut.cpp
+++ b/src/itemshortcut.cpp
@@ -26,10 +26,6 @@
#include "itemshortcut.h"
#include "playerinfo.h"
-#include "net/inventoryhandler.h"
-
-#include "resources/iteminfo.h"
-
#include "utils/stringutils.h"
ItemShortcut *itemShortcut;
@@ -71,7 +67,7 @@ void ItemShortcut::useItem(int index)
Item *item = PlayerInfo::getInventory()->findItem(mItems[index]);
if (item && item->getQuantity())
{
- if (item->getInfo().getEquippable())
+ if (item->isEquippable())
{
if (item->isEquipped())
item->doEvent(Event::DoUnequip);