diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-12-08 13:15:47 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-12-08 13:15:47 -0700 |
commit | 782b3d32ba1f713750bc4555ab7d28fd808b28e0 (patch) | |
tree | ab590fc1ee69053d7c0c58cbddc66b9c56c845a1 /src | |
parent | a416ea3ba3cce57169c387d8f71d80b995e4170f (diff) | |
download | mana-782b3d32ba1f713750bc4555ab7d28fd808b28e0.tar.gz mana-782b3d32ba1f713750bc4555ab7d28fd808b28e0.tar.bz2 mana-782b3d32ba1f713750bc4555ab7d28fd808b28e0.tar.xz mana-782b3d32ba1f713750bc4555ab7d28fd808b28e0.zip |
Fix handling of an enum switch
Removes warnings on older compilers.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/ea/inventoryhandler.cpp | 3 | ||||
-rw-r--r-- | src/net/manaserv/inventoryhandler.cpp | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp index faf0183a..c616464a 100644 --- a/src/net/ea/inventoryhandler.cpp +++ b/src/net/ea/inventoryhandler.cpp @@ -484,10 +484,9 @@ size_t InventoryHandler::getSize(StorageType type) const return 300; case GUILD_STORAGE: return 1000; - case CART: + default: return 0; } - } } // namespace EAthena diff --git a/src/net/manaserv/inventoryhandler.cpp b/src/net/manaserv/inventoryhandler.cpp index 9bf727d1..f62da41c 100644 --- a/src/net/manaserv/inventoryhandler.cpp +++ b/src/net/manaserv/inventoryhandler.cpp @@ -179,10 +179,9 @@ size_t InventoryHandler::getSize(StorageType type) const case STORAGE: case GUILD_STORAGE: return 300; - case CART: + default: return 0; } - } } // namespace ManaServ |