diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-12 21:25:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-12 21:25:29 +0300 |
commit | e80c07028d95ea51860e55e043203693e96a8fb3 (patch) | |
tree | d60491fda061cfa6ef0d5ed2d94c0858c1d6cf12 /src/net/eathena/inventoryhandler.cpp | |
parent | 6f1f0869c0976a4b033e2d16bf2f58dc252db19a (diff) | |
download | manaplus-e80c07028d95ea51860e55e043203693e96a8fb3.tar.gz manaplus-e80c07028d95ea51860e55e043203693e96a8fb3.tar.bz2 manaplus-e80c07028d95ea51860e55e043203693e96a8fb3.tar.xz manaplus-e80c07028d95ea51860e55e043203693e96a8fb3.zip |
Fix packet CMSG_PLAYER_EQUIP for old version and update id.
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 343eb2d15..c010f4b0f 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -88,7 +88,10 @@ void InventoryHandler::equipItem(const Item *const item) const item->getInvIndex() + INVENTORY_OFFSET), "index"); // here we set flag for any slots, // probably better set to slot from item properties - outMsg.writeInt32(0xFFFFFFFFU, "wear location"); + if (packetVersion >= 20130320) + outMsg.writeInt32(0xFFFFFFFFU, "wear location"); + else + outMsg.writeInt16(0x7FFFU, "wear location"); } void InventoryHandler::unequipItem(const Item *const item) const |