summaryrefslogtreecommitdiff
path: root/src/gui/itemamount.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-03-25 12:18:43 -0600
committerJared Adams <jaxad0127@gmail.com>2010-03-25 12:42:43 -0600
commitf781215c6401343d287798b58b08183e71ef57e3 (patch)
treeb07001f8ee295c4ba8617c5168805269530bd9d1 /src/gui/itemamount.cpp
parentbf6cb46d9b06b06470efd5ad3ebae7e274f6906f (diff)
downloadmana-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.cpp9
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;