summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-25 01:56:14 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-25 01:56:14 +0300
commit3b7922ace2174fb2542800b5a6462e2cabba19f2 (patch)
tree986398a17ec69b41e28dbbafebc181a3d3fc59dd
parent10a11861c685ab2250fb257666c5cda6dad0371c (diff)
downloadmv-3b7922ace2174fb2542800b5a6462e2cabba19f2.tar.gz
mv-3b7922ace2174fb2542800b5a6462e2cabba19f2.tar.bz2
mv-3b7922ace2174fb2542800b5a6462e2cabba19f2.tar.xz
mv-3b7922ace2174fb2542800b5a6462e2cabba19f2.zip
Fix compilation warnings.
-rw-r--r--src/net/eathena/beinghandler.cpp2
-rw-r--r--src/net/eathena/inventoryhandler.cpp12
2 files changed, 0 insertions, 14 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index bc5987f1c..e5116a612 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -1037,8 +1037,6 @@ void BeingHandler::processBeingStatusChange(Net::MessageIn &msg)
return;
}
- const bool status1 = msg.getId() == SMSG_BEING_STATUS_CHANGE;
-
// Status change
const uint16_t status = msg.readInt16("status");
const int id = msg.readInt32("being id");
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp
index ff0e8eaaf..030925965 100644
--- a/src/net/eathena/inventoryhandler.cpp
+++ b/src/net/eathena/inventoryhandler.cpp
@@ -818,18 +818,6 @@ void InventoryHandler::processPlayerCartAdd(Net::MessageIn &msg)
for (int f = 0; f < 4; f++)
cards[f] = msg.readInt16("card");
- const ItemInfo &itemInfo = ItemDB::get(itemId);
- int floorId;
- if (mSentPickups.empty())
- {
- floorId = 0;
- }
- else
- {
- floorId = mSentPickups.front();
- mSentPickups.pop();
- }
-
if (inventory)
{
const Item *const item = inventory->getItem(index);