From 294fbc6e2b47556a7d8f1cdf5bc0232c8ec89a4a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 3 Apr 2016 21:03:21 +0300 Subject: Add some legacy packets. --- src/net/eathena/itemrecv.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/net/eathena/itemrecv.cpp') 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(msg.readInt16("type")); + ItemTypeT itemType = ItemType::Unknown; + if (msg.getVersion() >= 20130000) + itemType = static_cast(msg.readInt16("type")); const Identified identified = fromInt( msg.readUInt8("identify"), Identified); const int x = msg.readInt16("x"); -- cgit v1.2.3-70-g09d2