summaryrefslogtreecommitdiff
path: root/src/net/eathena/inventoryhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-10 17:22:19 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-10 17:22:19 +0300
commit0a30c5377d336459ba6a100af532d3aaa29ddb1b (patch)
treeef42764d8deedd680e83e246486c01631d664562 /src/net/eathena/inventoryhandler.cpp
parenta6d493e5b9336be4265f9359d0f78fa7e6e0e856 (diff)
downloadplus-0a30c5377d336459ba6a100af532d3aaa29ddb1b.tar.gz
plus-0a30c5377d336459ba6a100af532d3aaa29ddb1b.tar.bz2
plus-0a30c5377d336459ba6a100af532d3aaa29ddb1b.tar.xz
plus-0a30c5377d336459ba6a100af532d3aaa29ddb1b.zip
eathena: add packet CMSG_MOVE_FROM_CART_TO_STORAGE 0x0129.
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r--src/net/eathena/inventoryhandler.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp
index 9dc644fd5..f319449f4 100644
--- a/src/net/eathena/inventoryhandler.cpp
+++ b/src/net/eathena/inventoryhandler.cpp
@@ -229,6 +229,12 @@ void InventoryHandler::moveItem2(const int source, const int slot,
outMsg.writeInt16(static_cast<int16_t>(slot + INVENTORY_OFFSET));
outMsg.writeInt32(amount);
}
+ else if (source == Inventory::CART && destination == Inventory::STORAGE)
+ {
+ MessageOut outMsg(CMSG_MOVE_FROM_CART_TO_STORAGE);
+ outMsg.writeInt16(static_cast<int16_t>(slot + INVENTORY_OFFSET));
+ outMsg.writeInt32(amount);
+ }
}
void InventoryHandler::useCard(const int index) const