From 28808fddc14c01f93efa0e6963ec65b08e3bbd7b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 13 Sep 2014 18:25:01 +0300 Subject: fix compilation warnings. --- src/net/tmwa/inventoryhandler.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/net/tmwa') diff --git a/src/net/tmwa/inventoryhandler.cpp b/src/net/tmwa/inventoryhandler.cpp index ed4630bb2..3476cb10a 100644 --- a/src/net/tmwa/inventoryhandler.cpp +++ b/src/net/tmwa/inventoryhandler.cpp @@ -399,8 +399,6 @@ void InventoryHandler::processPlayerInventory(Net::MessageIn &msg) void InventoryHandler::processPlayerStorage(Net::MessageIn &msg) { BLOCK_START("InventoryHandler::processPlayerInventory") - Inventory *const inventory = localPlayer - ? PlayerInfo::getInventory() : nullptr; mInventoryItems.clear(); msg.readInt16("len"); @@ -414,7 +412,7 @@ void InventoryHandler::processPlayerStorage(Net::MessageIn &msg) const uint8_t itemType = msg.readUInt8("item type"); uint8_t identified = msg.readUInt8("identified"); const int amount = msg.readInt16("amount"); - const int arrow = msg.readInt16("arrow"); + msg.readInt16("arrow"); for (int i = 0; i < 4; i++) cards[i] = msg.readInt16("card"); -- cgit v1.2.3-60-g2f50