diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-04 13:55:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 01:18:57 +0300 |
commit | e9cc6c1f66ef9fceafa1787616c981f656502bf0 (patch) | |
tree | ecd04ee313ff4069fffbd794934721e2fa3a0891 | |
parent | 1c2e4fb5dbe28f03b621632acd1f804379349a41 (diff) | |
download | plus-e9cc6c1f66ef9fceafa1787616c981f656502bf0.tar.gz plus-e9cc6c1f66ef9fceafa1787616c981f656502bf0.tar.bz2 plus-e9cc6c1f66ef9fceafa1787616c981f656502bf0.tar.xz plus-e9cc6c1f66ef9fceafa1787616c981f656502bf0.zip |
eathena: fix handling packet SMSG_PLAYER_INVENTORY_ADD 0x0990.
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 0bc5b3e8d..1ee1f8f9d 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -286,12 +286,11 @@ void InventoryHandler::processPlayerInventoryAdd(Net::MessageIn &msg) msg.readInt16("card3"); const int equipType = msg.readInt32("location"); msg.readUInt8("item type"); - msg.readUInt8("fail flag"); + const unsigned char err = msg.readUInt8("result"); msg.readInt32("hire expire date"); - msg.readInt16("equip type"); + msg.readInt16("bind on equip"); const ItemInfo &itemInfo = ItemDB::get(itemId); - const unsigned char err = msg.readUInt8(); int floorId; if (mSentPickups.empty()) { |