summaryrefslogtreecommitdiff
path: root/src/actions/actions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r--src/actions/actions.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index b76b64108..fc45b440f 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -247,10 +247,19 @@ static Item *getItemByInvIndex(const InputEvent &event,
inv = PlayerInfo::getStorageInventory();
break;
- default:
case InventoryType::Inventory:
inv = PlayerInfo::getInventory();
break;
+ case InventoryType::Trade:
+ case InventoryType::Npc:
+#ifdef EATHENA_SUPPORT
+ case InventoryType::Cart:
+ case InventoryType::Vending:
+ case InventoryType::Mail:
+#endif
+ case InventoryType::TypeEnd:
+ default:
+ break;
}
if (inv)
return inv->getItem(index);