From a7524c70c71cbdaed7e541105d9c743fb18f56cf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 10 Oct 2014 02:40:38 +0300 Subject: Fix compilation warning. --- src/net/eathena/tradehandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3-70-g09d2