diff options
Diffstat (limited to 'src/itemshortcut.cpp')
-rw-r--r-- | src/itemshortcut.cpp | 6 |
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 } } } |