summaryrefslogtreecommitdiff
path: root/src/net/eathena/inventoryrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-03 23:18:35 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-03 23:18:35 +0300
commitf644bad683cf30f2f98fd6cd911b8bf53e98e01c (patch)
treee9a0645da7732f72d7826934934292b84a9c8105 /src/net/eathena/inventoryrecv.cpp
parentef52c9f9df0dd3b1e79226af71c772c4a23f9df8 (diff)
downloadmanaverse-f644bad683cf30f2f98fd6cd911b8bf53e98e01c.tar.gz
manaverse-f644bad683cf30f2f98fd6cd911b8bf53e98e01c.tar.bz2
manaverse-f644bad683cf30f2f98fd6cd911b8bf53e98e01c.tar.xz
manaverse-f644bad683cf30f2f98fd6cd911b8bf53e98e01c.zip
Add packet SMSG_PLAYER_UNEQUIP 0x00ac.
Diffstat (limited to 'src/net/eathena/inventoryrecv.cpp')
-rw-r--r--src/net/eathena/inventoryrecv.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net/eathena/inventoryrecv.cpp b/src/net/eathena/inventoryrecv.cpp
index e5d5ec059..9a4c83760 100644
--- a/src/net/eathena/inventoryrecv.cpp
+++ b/src/net/eathena/inventoryrecv.cpp
@@ -520,7 +520,11 @@ void InventoryRecv::processPlayerUnEquip(Net::MessageIn &msg)
{
BLOCK_START("InventoryRecv::processPlayerUnEquip")
msg.readInt16("index");
- const int equipType = msg.readInt32("wear location");
+ int equipType;
+ if (msg.getVersion() >= 20120925)
+ equipType = msg.readInt32("wear location");
+ else
+ equipType = msg.readInt16("wear location");
const uint8_t flag = msg.readUInt8("result");
if (flag)