diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-07-26 03:02:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-07-26 03:02:37 +0300 |
commit | 639148d9d301bd2dc20893fcf0571eb5c8e922f3 (patch) | |
tree | dd67dce5139b205820ae5d987fb7ff0a225df667 /src/net/ea/inventoryrecv.cpp | |
parent | 45527f8597dfac68e914a798184282faeb1493f2 (diff) | |
download | plus-639148d9d301bd2dc20893fcf0571eb5c8e922f3.tar.gz plus-639148d9d301bd2dc20893fcf0571eb5c8e922f3.tar.bz2 plus-639148d9d301bd2dc20893fcf0571eb5c8e922f3.tar.xz plus-639148d9d301bd2dc20893fcf0571eb5c8e922f3.zip |
Add support for changed item id size in packets.
From some packet version hercules support item id fields as int32.
Diffstat (limited to 'src/net/ea/inventoryrecv.cpp')
-rw-r--r-- | src/net/ea/inventoryrecv.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/ea/inventoryrecv.cpp b/src/net/ea/inventoryrecv.cpp index 3bae51555..5dd4075d6 100644 --- a/src/net/ea/inventoryrecv.cpp +++ b/src/net/ea/inventoryrecv.cpp @@ -63,7 +63,7 @@ void InventoryRecv::processPlayerInventoryUse(Net::MessageIn &msg) ? PlayerInfo::getInventory() : nullptr; const int index = msg.readInt16("index") - INVENTORY_OFFSET; - msg.readInt16("item id"); + msg.readItemId("item id"); msg.readInt32("id?"); const int amount = msg.readInt16("amount"); msg.readUInt8("type"); |