diff options
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"); |