summaryrefslogtreecommitdiff
path: root/src/gui/itemamountwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-29 15:41:25 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-29 15:41:25 +0300
commite18e3bdf005824b5875bda74053c116b6c4c059f (patch)
tree876cba874c231b79e5eb5cef7233e98b78ec627d /src/gui/itemamountwindow.cpp
parent5e988995513762efc328dc0c592e191b49622d30 (diff)
downloadplus-e18e3bdf005824b5875bda74053c116b6c4c059f.tar.gz
plus-e18e3bdf005824b5875bda74053c116b6c4c059f.tar.bz2
plus-e18e3bdf005824b5875bda74053c116b6c4c059f.tar.xz
plus-e18e3bdf005824b5875bda74053c116b6c4c059f.zip
Fix possible hiding methods issues.
Diffstat (limited to 'src/gui/itemamountwindow.cpp')
-rw-r--r--src/gui/itemamountwindow.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gui/itemamountwindow.cpp b/src/gui/itemamountwindow.cpp
index 9e2a97681..3b01b559f 100644
--- a/src/gui/itemamountwindow.cpp
+++ b/src/gui/itemamountwindow.cpp
@@ -113,14 +113,12 @@ void ItemAmountWindow::finish(Item *item, int amount, int price, Usage usage)
Net::getInventoryHandler()->splitItem(item, amount);
break;
case StoreAdd:
- Net::getInventoryHandler()->moveItem(Inventory::INVENTORY,
- item->getInvIndex(), amount,
- Inventory::STORAGE);
+ Net::getInventoryHandler()->moveItem2(Inventory::INVENTORY,
+ item->getInvIndex(), amount, Inventory::STORAGE);
break;
case StoreRemove:
- Net::getInventoryHandler()->moveItem(Inventory::STORAGE,
- item->getInvIndex(), amount,
- Inventory::INVENTORY);
+ Net::getInventoryHandler()->moveItem2(Inventory::STORAGE,
+ item->getInvIndex(), amount, Inventory::INVENTORY);
break;
case ShopBuyAdd:
if (shopWindow)