summaryrefslogtreecommitdiff
path: root/src/net/eathena/inventoryhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-02 23:30:27 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:56 +0300
commit19f03b283367a95e3ffb7ef63049fd2992352aab (patch)
treeb1374f28350cb123a0159c87d1c5aecd147eac69 /src/net/eathena/inventoryhandler.cpp
parentf32c27a3446fc8312a7fd4f9a85b60720549582a (diff)
downloadmanaverse-19f03b283367a95e3ffb7ef63049fd2992352aab.tar.gz
manaverse-19f03b283367a95e3ffb7ef63049fd2992352aab.tar.bz2
manaverse-19f03b283367a95e3ffb7ef63049fd2992352aab.tar.xz
manaverse-19f03b283367a95e3ffb7ef63049fd2992352aab.zip
fix compilation warnings
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r--src/net/eathena/inventoryhandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp
index b1b787911..607a0717c 100644
--- a/src/net/eathena/inventoryhandler.cpp
+++ b/src/net/eathena/inventoryhandler.cpp
@@ -223,7 +223,7 @@ void InventoryHandler::processPlayerEquipment(Net::MessageIn &msg)
{
const int index = msg.readInt16("index") - INVENTORY_OFFSET;
const int itemId = msg.readInt16("item id");
- const uint8_t itemType = msg.readUInt8("item type");
+ msg.readUInt8("item type");
// uint8_t identified = msg.readUInt8(); // identify flag
msg.readInt32("location");
@@ -236,7 +236,7 @@ void InventoryHandler::processPlayerEquipment(Net::MessageIn &msg)
msg.readInt32("hire expire date (?)");
const int equipType = msg.readInt16("equip type");
msg.readInt16("item sprite number");
- const uint8_t flags = static_cast<uint8_t>(msg.readInt8("flags"));
+ msg.readInt8("flags");
// need get actual identify flag
uint8_t identified = 1;