From 964fd34057c27c5b9ba0df94a6114968433bbf7e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 4 Sep 2014 18:49:05 +0300 Subject: eathena: fix packet SMSG_TRADE_REQUEST 0x01f4. --- src/net/eathena/protocol.h | 2 +- src/net/eathena/tradehandler.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index eba7edc77..da630fae0 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -126,7 +126,7 @@ #define SMSG_WALK_RESPONSE 0x0087 // Receiving a request to trade -#define SMSG_TRADE_REQUEST 0x00e5 +#define SMSG_TRADE_REQUEST 0x01f4 #define SMSG_TRADE_RESPONSE 0x00e7 #define SMSG_TRADE_ITEM_ADD 0x00e9 #define SMSG_TRADE_ITEM_ADD_RESPONSE 0x01b1 /**< Not standard eAthena! */ diff --git a/src/net/eathena/tradehandler.cpp b/src/net/eathena/tradehandler.cpp index 1d9fabaa0..0e893caf9 100644 --- a/src/net/eathena/tradehandler.cpp +++ b/src/net/eathena/tradehandler.cpp @@ -148,7 +148,10 @@ void TradeHandler::cancel() const void TradeHandler::processTradeRequest(Net::MessageIn &msg) const { - processTradeRequestContinue(msg.readString(24, "name")); + const std::string &partner = msg.readString(24, "name"); + msg.readInt32("char id"); + msg.readInt16("base level"); + processTradeRequestContinue(partner); } } // namespace EAthena -- cgit v1.2.3-70-g09d2