From 5deadbb0d4a7c770667b8c06f72902a9aa6db6b7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 24 Jan 2015 19:53:12 +0300 Subject: eathena: fix getting cart items list from server. --- src/net/eathena/inventoryhandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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"); -- cgit v1.2.3-60-g2f50