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, 6 insertions, 0 deletions
diff --git a/src/itemshortcut.cpp b/src/itemshortcut.cpp
index b1dfb618..2dea8c56 100644
--- a/src/itemshortcut.cpp
+++ b/src/itemshortcut.cpp
@@ -72,14 +72,20 @@ void ItemShortcut::useItem(int index)
{
if (item->isEquipment())
{
+#ifdef EATHENA_SUPPORT
if (item->isEquipped())
player_node->unequipItem(item);
else
+#endif
player_node->equipItem(item);
}
else
{
+#ifdef TMWSERV_SUPPORT
+ player_node->useItem(item->getInvIndex());
+#else
player_node->useItem(item);
+#endif
}
}
}