From 6d21b6cbc000d30938309056ea8e8f7bf903f7dc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 3 Sep 2014 23:35:23 +0300 Subject: eathena: fix packet SMSG_PLAYER_UNEQUIP 0x099a. --- src/net/eathena/inventoryhandler.cpp | 6 +++--- src/net/eathena/packets.h | 2 +- src/net/eathena/protocol.h | 2 +- 3 files changed, 5 insertions(+), 5 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); diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h index db9f6b7cb..4e3398c92 100644 --- a/src/net/eathena/packets.h +++ b/src/net/eathena/packets.h @@ -248,7 +248,7 @@ int16_t packet_lengths[] = 31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // #0x0980 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, + 0, -1, -1, 0, 0, 0, 0, 0, 0, 11, 9, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // #0x09C0 diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index cd6a654c1..eba7edc77 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -74,7 +74,7 @@ #define SMSG_PLAYER_INVENTORY_USE 0x01c8 #define SMSG_PLAYER_EQUIPMENT 0x0992 #define SMSG_PLAYER_EQUIP 0x0999 -#define SMSG_PLAYER_UNEQUIP 0x00ac +#define SMSG_PLAYER_UNEQUIP 0x099a #define SMSG_PLAYER_ATTACK_RANGE 0x013a #define SMSG_PLAYER_ARROW_EQUIP 0x013c #define SMSG_PLAYER_ARROW_MESSAGE 0x013b -- cgit v1.2.3-70-g09d2