summaryrefslogtreecommitdiff
path: root/src/net/eathena/inventoryhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-03 23:35:23 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:56 +0300
commit6d21b6cbc000d30938309056ea8e8f7bf903f7dc (patch)
tree49c7ebd1d057d012d71cde7bc732a60ff01b07d5 /src/net/eathena/inventoryhandler.cpp
parent7890bb3f423dbdb815d97f066594ae8917c5cee7 (diff)
downloadmanaverse-6d21b6cbc000d30938309056ea8e8f7bf903f7dc.tar.gz
manaverse-6d21b6cbc000d30938309056ea8e8f7bf903f7dc.tar.bz2
manaverse-6d21b6cbc000d30938309056ea8e8f7bf903f7dc.tar.xz
manaverse-6d21b6cbc000d30938309056ea8e8f7bf903f7dc.zip
eathena: fix packet SMSG_PLAYER_UNEQUIP 0x099a.
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r--src/net/eathena/inventoryhandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp
index da404fe05..ec3c23cef 100644
--- a/src/net/eathena/inventoryhandler.cpp
+++ b/src/net/eathena/inventoryhandler.cpp
@@ -414,9 +414,9 @@ void InventoryHandler::processPlayerEquip(Net::MessageIn &msg)
void InventoryHandler::processPlayerUnEquip(Net::MessageIn &msg)
{
BLOCK_START("InventoryHandler::processPlayerUnEquip")
- msg.readInt16(); // inder val - INVENTORY_OFFSET;
- const int equipType = msg.readInt16();
- const uint8_t flag = msg.readUInt8();
+ msg.readInt16("index");
+ const int equipType = msg.readInt32("wear location");
+ const uint8_t flag = msg.readUInt8("result");
if (flag)
mEquips.setEquipment(getSlot(equipType), -1);