summaryrefslogtreecommitdiff
path: root/src/net/eathena/traderecv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/traderecv.cpp')
-rw-r--r--src/net/eathena/traderecv.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/net/eathena/traderecv.cpp b/src/net/eathena/traderecv.cpp
index 373884dac..37f2b0dbc 100644
--- a/src/net/eathena/traderecv.cpp
+++ b/src/net/eathena/traderecv.cpp
@@ -55,8 +55,11 @@ namespace TradeRecv
void TradeRecv::processTradeRequest(Net::MessageIn &msg)
{
const std::string &partner = msg.readString(24, "name");
- msg.readInt32("char id");
- msg.readInt16("base level");
+ if (msg.getVersion() >= 6)
+ {
+ msg.readInt32("char id");
+ msg.readInt16("base level");
+ }
Ea::TradeRecv::processTradeRequestContinue(partner);
}