diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-13 18:25:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-13 18:25:01 +0300 |
commit | 28808fddc14c01f93efa0e6963ec65b08e3bbd7b (patch) | |
tree | 9913ad6bc7790dc165c1d12ebd976a9ef4c30e80 /src/net/tmwa | |
parent | 71e2ff27012ea70955388cfb7c6c760028711eac (diff) | |
download | manaplus-28808fddc14c01f93efa0e6963ec65b08e3bbd7b.tar.gz manaplus-28808fddc14c01f93efa0e6963ec65b08e3bbd7b.tar.bz2 manaplus-28808fddc14c01f93efa0e6963ec65b08e3bbd7b.tar.xz manaplus-28808fddc14c01f93efa0e6963ec65b08e3bbd7b.zip |
fix compilation warnings.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/inventoryhandler.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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"); |