summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-13 18:25:01 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-13 18:25:01 +0300
commit28808fddc14c01f93efa0e6963ec65b08e3bbd7b (patch)
tree9913ad6bc7790dc165c1d12ebd976a9ef4c30e80 /src
parent71e2ff27012ea70955388cfb7c6c760028711eac (diff)
downloadmanaverse-28808fddc14c01f93efa0e6963ec65b08e3bbd7b.tar.gz
manaverse-28808fddc14c01f93efa0e6963ec65b08e3bbd7b.tar.bz2
manaverse-28808fddc14c01f93efa0e6963ec65b08e3bbd7b.tar.xz
manaverse-28808fddc14c01f93efa0e6963ec65b08e3bbd7b.zip
fix compilation warnings.
Diffstat (limited to 'src')
-rw-r--r--src/net/tmwa/inventoryhandler.cpp4
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");