diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-03-25 12:18:43 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-03-25 12:42:43 -0600 |
commit | f781215c6401343d287798b58b08183e71ef57e3 (patch) | |
tree | b07001f8ee295c4ba8617c5168805269530bd9d1 /src/gui/itemamount.cpp | |
parent | bf6cb46d9b06b06470efd5ad3ebae7e274f6906f (diff) | |
download | mana-f781215c6401343d287798b58b08183e71ef57e3.tar.gz mana-f781215c6401343d287798b58b08183e71ef57e3.tar.bz2 mana-f781215c6401343d287798b58b08183e71ef57e3.tar.xz mana-f781215c6401343d287798b58b08183e71ef57e3.zip |
Merge StorageWindow into InventoryWindow
Reviewed-by: Chuck Miller
Diffstat (limited to 'src/gui/itemamount.cpp')
-rw-r--r-- | src/gui/itemamount.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/itemamount.cpp b/src/gui/itemamount.cpp index 1dc5425f..f28bbed7 100644 --- a/src/gui/itemamount.cpp +++ b/src/gui/itemamount.cpp @@ -24,7 +24,6 @@ #include "item.h" #include "keyboardconfig.h" -#include "gui/storagewindow.h" #include "gui/trade.h" #include "gui/itempopup.h" #include "gui/viewport.h" @@ -54,10 +53,14 @@ void ItemAmountWindow::finish(Item *item, int amount, Usage usage) Net::getInventoryHandler()->splitItem(item, amount); break; case StoreAdd: - StorageWindow::addStore(item, amount); + Net::getInventoryHandler()->moveItem(Net::InventoryHandler::INVENTORY, + item->getInvIndex(), amount, + Net::InventoryHandler::STORAGE); break; case StoreRemove: - StorageWindow::removeStore(item, amount); + Net::getInventoryHandler()->moveItem(Net::InventoryHandler::STORAGE, + item->getInvIndex(), amount, + Net::InventoryHandler::INVENTORY); break; default: break; |