summaryrefslogtreecommitdiff
path: root/src/net/tmwserv/inventoryhandler.cpp
diff options
context:
space:
mode:
authorBlue <bluesansdouze@gmail.com>2009-05-08 21:15:33 +0200
committerJared Adams <jaxad0127@gmail.com>2009-05-08 13:25:27 -0600
commita2ab6d765a3f205f282126ee4716a7b688b0c915 (patch)
tree41e6f3f8405b243f075eaf51a2578d9dc14e5362 /src/net/tmwserv/inventoryhandler.cpp
parentc07b44461529852380765042cad0305ead408425 (diff)
downloadMana-a2ab6d765a3f205f282126ee4716a7b688b0c915.tar.gz
Mana-a2ab6d765a3f205f282126ee4716a7b688b0c915.tar.bz2
Mana-a2ab6d765a3f205f282126ee4716a7b688b0c915.tar.xz
Mana-a2ab6d765a3f205f282126ee4716a7b688b0c915.zip
Client - Inventory handler moveItem improve
Gives the actual number of items to the moveItem method. Fix compilation problem for twmserv client compilation.
Diffstat (limited to 'src/net/tmwserv/inventoryhandler.cpp')
-rw-r--r--src/net/tmwserv/inventoryhandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/tmwserv/inventoryhandler.cpp b/src/net/tmwserv/inventoryhandler.cpp
index 75886948..d78c8318 100644
--- a/src/net/tmwserv/inventoryhandler.cpp
+++ b/src/net/tmwserv/inventoryhandler.cpp
@@ -137,8 +137,8 @@ void InventoryHandler::moveItem(int oldIndex, int newIndex)
if (oldIndex == newIndex)
return;
- // TODO fix me!
- Net::GameServer::Player::moveItem(oldIndex, newIndex, -1);
+ Net::GameServer::Player::moveItem(oldIndex, newIndex,
+ player_node->getInventory()->getItem(oldIndex)->getQuantity());
}
void InventoryHandler::openStorage()