diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-03 22:57:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 01:18:56 +0300 |
commit | 0af6ac61cb8fbe5b1b0a593a705a14c8a01e2fa3 (patch) | |
tree | 53f1ef394fea07e4d5c3cbac2b3fc8e0d682731b /src/net/eathena | |
parent | eb904c5fb6219ca2caaa80805e9aef9b8cb59587 (diff) | |
download | manaplus-0af6ac61cb8fbe5b1b0a593a705a14c8a01e2fa3.tar.gz manaplus-0af6ac61cb8fbe5b1b0a593a705a14c8a01e2fa3.tar.bz2 manaplus-0af6ac61cb8fbe5b1b0a593a705a14c8a01e2fa3.tar.xz manaplus-0af6ac61cb8fbe5b1b0a593a705a14c8a01e2fa3.zip |
eathena: fix packet CMSG_PLAYER_EQUIP 0x0998.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 4 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 1d32cda58..3eb10d28b 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -149,8 +149,8 @@ void InventoryHandler::equipItem(const Item *const item) const MessageOut outMsg(CMSG_PLAYER_EQUIP); outMsg.writeInt16(static_cast<int16_t>( - item->getInvIndex() + INVENTORY_OFFSET)); - outMsg.writeInt16(0); + item->getInvIndex() + INVENTORY_OFFSET), "index"); + outMsg.writeInt32(0, "wear location"); } void InventoryHandler::unequipItem(const Item *const item) const diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 31c943b4b..49e8502cb 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -226,7 +226,7 @@ #define CMSG_PLAYER_INVENTORY_USE 0x0439 #define CMSG_PLAYER_INVENTORY_DROP 0x0362 -#define CMSG_PLAYER_EQUIP 0x00a9 +#define CMSG_PLAYER_EQUIP 0x0998 #define CMSG_PLAYER_UNEQUIP 0x00ab #define CMSG_ITEM_PICKUP 0x07e4 |