summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-10 02:40:38 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-10 02:40:38 +0300
commita7524c70c71cbdaed7e541105d9c743fb18f56cf (patch)
tree91404e26976f20a15ef48f8d3b91ecbad9ae0895
parentb7f800669a6171e326234a4a8f4b366588c36ae1 (diff)
downloadmv-a7524c70c71cbdaed7e541105d9c743fb18f56cf.tar.gz
mv-a7524c70c71cbdaed7e541105d9c743fb18f56cf.tar.bz2
mv-a7524c70c71cbdaed7e541105d9c743fb18f56cf.tar.xz
mv-a7524c70c71cbdaed7e541105d9c743fb18f56cf.zip
Fix compilation warning.
-rw-r--r--src/net/eathena/tradehandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/eathena/tradehandler.cpp b/src/net/eathena/tradehandler.cpp
index 7a4cb4e9f..05fd893ca 100644
--- a/src/net/eathena/tradehandler.cpp
+++ b/src/net/eathena/tradehandler.cpp
@@ -209,7 +209,7 @@ void TradeHandler::processTradeItemAdd(Net::MessageIn &msg)
void TradeHandler::processTradeItemAddResponse(Net::MessageIn &msg)
{
- const int index = msg.readInt16("index") - INVENTORY_OFFSET;
+ msg.readInt16("index");
const uint8_t res = msg.readUInt8("fail");
switch (res)
{