summaryrefslogtreecommitdiff
path: root/src/net/eathena/friendsrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-04-07 00:22:04 +0300
committerAndrei Karas <akaras@inbox.ru>2018-04-07 00:22:37 +0300
commit24b3f27775801e4ce45e4203f87994209dd54e7b (patch)
tree669d18d459763ce6fe9541cd9aa68e7bf4897158 /src/net/eathena/friendsrecv.cpp
parent0cd149ef9bcac3d136406e4d90e8875dbb85c925 (diff)
downloadplus-24b3f27775801e4ce45e4203f87994209dd54e7b.tar.gz
plus-24b3f27775801e4ce45e4203f87994209dd54e7b.tar.bz2
plus-24b3f27775801e4ce45e4203f87994209dd54e7b.tar.xz
plus-24b3f27775801e4ce45e4203f87994209dd54e7b.zip
Fix packet SMSG_FRIENDS_LIST 0x0201 for new packet versions.
Diffstat (limited to 'src/net/eathena/friendsrecv.cpp')
-rw-r--r--src/net/eathena/friendsrecv.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/eathena/friendsrecv.cpp b/src/net/eathena/friendsrecv.cpp
index 874466de0..31c3d5c76 100644
--- a/src/net/eathena/friendsrecv.cpp
+++ b/src/net/eathena/friendsrecv.cpp
@@ -50,7 +50,8 @@ void FriendsRecv::processFriendsList(Net::MessageIn &msg)
{
msg.readBeingId("account id");
msg.readInt32("char id");
- msg.readString(24, "name");
+ if (!(packetVersionMain >= 20180307 || packetVersionRe >= 20180221))
+ msg.readString(24, "name");
}
}