diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-24 19:53:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-24 19:53:12 +0300 |
commit | 5deadbb0d4a7c770667b8c06f72902a9aa6db6b7 (patch) | |
tree | e8eebb2555bbf586e17edd3897cd1b568626baac /src | |
parent | edef5578e48c1daa9c2545ed26ef4a2455eb5b25 (diff) | |
download | manaverse-5deadbb0d4a7c770667b8c06f72902a9aa6db6b7.tar.gz manaverse-5deadbb0d4a7c770667b8c06f72902a9aa6db6b7.tar.bz2 manaverse-5deadbb0d4a7c770667b8c06f72902a9aa6db6b7.tar.xz manaverse-5deadbb0d4a7c770667b8c06f72902a9aa6db6b7.zip |
eathena: fix getting cart items list from server.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index fe8bd7424..316617be1 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -847,7 +847,7 @@ void InventoryHandler::processPlayerCartEquip(Net::MessageIn &msg) const int number = (msg.getLength() - 4) / 31; for (int loop = 0; loop < number; loop++) { - const int index = msg.readInt16("index") - STORAGE_OFFSET; + const int index = msg.readInt16("index") - INVENTORY_OFFSET; const int itemId = msg.readInt16("item id"); const int itemType = msg.readUInt8("item type"); const int amount = 1; @@ -880,7 +880,7 @@ void InventoryHandler::processPlayerCartItems(Net::MessageIn &msg) for (int loop = 0; loop < number; loop++) { - const int index = msg.readInt16("item index") - STORAGE_OFFSET; + const int index = msg.readInt16("item index") - INVENTORY_OFFSET; const int itemId = msg.readInt16("item id"); const int itemType = msg.readUInt8("item type"); const int amount = msg.readInt16("count"); |