summaryrefslogtreecommitdiff
path: root/src/actions/actions.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-20 21:42:31 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-20 21:53:56 +0300
commitf3511bcf5aac7a46958f9cdf1649be976679d257 (patch)
tree4f8557315cc9ffdc2347ef8a09c6ea9890f7bb2f /src/actions/actions.cpp
parenta4dc0e9c2b9aff1f2d6f131f263f809ee254443b (diff)
downloadmanaplus-f3511bcf5aac7a46958f9cdf1649be976679d257.tar.gz
manaplus-f3511bcf5aac7a46958f9cdf1649be976679d257.tar.bz2
manaplus-f3511bcf5aac7a46958f9cdf1649be976679d257.tar.xz
manaplus-f3511bcf5aac7a46958f9cdf1649be976679d257.zip
Fix code style.
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);