diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-03-25 16:03:13 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-03-25 16:56:12 -0600 |
commit | 8745368108563d7c32820b989c3ea794ccb834f9 (patch) | |
tree | a69554b2e5659b25f50797cc6ab4cc95b2b6f84e /src/gui/itemamount.cpp | |
parent | ac18a72c9972faf6dbd68abf3c883b2d444396c8 (diff) | |
download | mana-8745368108563d7c32820b989c3ea794ccb834f9.tar.gz mana-8745368108563d7c32820b989c3ea794ccb834f9.tar.bz2 mana-8745368108563d7c32820b989c3ea794ccb834f9.tar.xz mana-8745368108563d7c32820b989c3ea794ccb834f9.zip |
Remove the type boolean from InventoryWindow
This moves inventory/storage type into the Inventory class, having
size default to a call to the netcode to get the sive for the given
type.
Reviewed-by: Chuck Miller
Diffstat (limited to 'src/gui/itemamount.cpp')
-rw-r--r-- | src/gui/itemamount.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/itemamount.cpp b/src/gui/itemamount.cpp index f28bbed7..a98a67ab 100644 --- a/src/gui/itemamount.cpp +++ b/src/gui/itemamount.cpp @@ -53,14 +53,14 @@ void ItemAmountWindow::finish(Item *item, int amount, Usage usage) Net::getInventoryHandler()->splitItem(item, amount); break; case StoreAdd: - Net::getInventoryHandler()->moveItem(Net::InventoryHandler::INVENTORY, + Net::getInventoryHandler()->moveItem(Inventory::INVENTORY, item->getInvIndex(), amount, - Net::InventoryHandler::STORAGE); + Inventory::STORAGE); break; case StoreRemove: - Net::getInventoryHandler()->moveItem(Net::InventoryHandler::STORAGE, + Net::getInventoryHandler()->moveItem(Inventory::STORAGE, item->getInvIndex(), amount, - Net::InventoryHandler::INVENTORY); + Inventory::INVENTORY); break; default: break; |