diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-20 21:19:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-20 21:19:59 +0300 |
commit | a9f6959a96395edc64ff57bf5ba1d75cca8e86c3 (patch) | |
tree | f6975bea7e87380ee7d063ccfb2efbc835341c91 /src/net/eathena/inventoryrecv.cpp | |
parent | 3e8fecc9a62afff0054fa0fa23af86c8ef15a1c9 (diff) | |
download | manaverse-a9f6959a96395edc64ff57bf5ba1d75cca8e86c3.tar.gz manaverse-a9f6959a96395edc64ff57bf5ba1d75cca8e86c3.tar.bz2 manaverse-a9f6959a96395edc64ff57bf5ba1d75cca8e86c3.tar.xz manaverse-a9f6959a96395edc64ff57bf5ba1d75cca8e86c3.zip |
Add missing const in net directory.
Diffstat (limited to 'src/net/eathena/inventoryrecv.cpp')
-rw-r--r-- | src/net/eathena/inventoryrecv.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/eathena/inventoryrecv.cpp b/src/net/eathena/inventoryrecv.cpp index d3b969143..68663112e 100644 --- a/src/net/eathena/inventoryrecv.cpp +++ b/src/net/eathena/inventoryrecv.cpp @@ -156,7 +156,7 @@ void InventoryRecv::processPlayerInventoryAdd(Net::MessageIn &msg) const int index = msg.readInt16("index") - INVENTORY_OFFSET; int amount = msg.readInt16("count"); const int itemId = msg.readInt16("item id"); - uint8_t identified = msg.readUInt8("identified"); + const uint8_t identified = msg.readUInt8("identified"); const uint8_t damaged = msg.readUInt8("is damaged"); const uint8_t refine = msg.readUInt8("refine"); int cards[maxCards]; @@ -733,7 +733,7 @@ void InventoryRecv::processPlayerCartAdd(Net::MessageIn &msg) int amount = msg.readInt32("count"); const int itemId = msg.readInt16("item id"); const int itemType = msg.readUInt8("item type"); - uint8_t identified = msg.readUInt8("identified"); + const uint8_t identified = msg.readUInt8("identified"); const Damaged damaged = fromBool(msg.readUInt8("attribute"), Damaged); const uint8_t refine = msg.readUInt8("refine"); int cards[maxCards]; @@ -1058,7 +1058,7 @@ void InventoryRecv::processBindItem(Net::MessageIn &msg) if (inv) { std::string itemName; - const Item *item = inv->getItem(index); + const Item *const item = inv->getItem(index); if (item) { itemName = item->getName(); |