summaryrefslogtreecommitdiff
path: root/src/net/eathena/gamerecv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/gamerecv.cpp')
-rw-r--r--src/net/eathena/gamerecv.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/net/eathena/gamerecv.cpp b/src/net/eathena/gamerecv.cpp
index 41704deaa..6fdb7389a 100644
--- a/src/net/eathena/gamerecv.cpp
+++ b/src/net/eathena/gamerecv.cpp
@@ -55,8 +55,10 @@ void GameRecv::processMapLogin(Net::MessageIn &msg)
logger->log("Protocol: Player start position: "
"(%d, %d), Direction: %d",
x, y, direction);
- msg.readInt16("font");
- msg.readUInt8("sex");
+ if (msg.getVersion() >= 20080102)
+ msg.readInt16("font");
+ if (msg.getVersion() >= 20141022)
+ msg.readUInt8("sex");
mLastHost &= 0xffffff;