From f3511bcf5aac7a46958f9cdf1649be976679d257 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 20 Nov 2015 21:42:31 +0300 Subject: Fix code style. --- src/actions/actions.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/actions/actions.cpp') 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); -- cgit v1.2.3-70-g09d2