diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-03 21:03:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-03 21:03:21 +0300 |
commit | 294fbc6e2b47556a7d8f1cdf5bc0232c8ec89a4a (patch) | |
tree | 9bca9eb3411a907922772a1dd2d0c7d7e2257534 /src/net/eathena/itemrecv.cpp | |
parent | 0ec09e012ef73e7592e23b080ace185fcbb0fdda (diff) | |
download | plus-294fbc6e2b47556a7d8f1cdf5bc0232c8ec89a4a.tar.gz plus-294fbc6e2b47556a7d8f1cdf5bc0232c8ec89a4a.tar.bz2 plus-294fbc6e2b47556a7d8f1cdf5bc0232c8ec89a4a.tar.xz plus-294fbc6e2b47556a7d8f1cdf5bc0232c8ec89a4a.zip |
Add some legacy packets.
Diffstat (limited to 'src/net/eathena/itemrecv.cpp')
-rw-r--r-- | src/net/eathena/itemrecv.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/eathena/itemrecv.cpp b/src/net/eathena/itemrecv.cpp index 526168e49..d20072a21 100644 --- a/src/net/eathena/itemrecv.cpp +++ b/src/net/eathena/itemrecv.cpp @@ -39,7 +39,9 @@ void ItemRecv::processItemDropped(Net::MessageIn &msg) { const BeingId id = msg.readBeingId("id"); const int itemId = msg.readInt16("item id"); - const ItemTypeT itemType = static_cast<ItemTypeT>(msg.readInt16("type")); + ItemTypeT itemType = ItemType::Unknown; + if (msg.getVersion() >= 20130000) + itemType = static_cast<ItemTypeT>(msg.readInt16("type")); const Identified identified = fromInt( msg.readUInt8("identify"), Identified); const int x = msg.readInt16("x"); |