From 7c6d3721e2a0cbf31213c344ac48765d34ad39a5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 Jan 2018 23:45:44 +0300 Subject: Add packet SMSG_PARTY_INFO 0x0ae5. --- src/net/eathena/packetsin.inc | 1 + src/net/eathena/partyrecv.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc index 623c0aace..e9a11cd56 100644 --- a/src/net/eathena/packetsin.inc +++ b/src/net/eathena/packetsin.inc @@ -997,6 +997,7 @@ if (packets_zero == true) if (packetVersion >= 20171207) { packet(SMSG_PARTY_MEMBER_INFO, 0x0ae4, 89, &PartyRecv::processPartyMemberInfo, 20171207); + packet(SMSG_PARTY_INFO, 0x0ae5, -1, &PartyRecv::processPartyInfo, 20171207); } // 0 diff --git a/src/net/eathena/partyrecv.cpp b/src/net/eathena/partyrecv.cpp index 185295861..336c7cfd0 100644 --- a/src/net/eathena/partyrecv.cpp +++ b/src/net/eathena/partyrecv.cpp @@ -212,6 +212,8 @@ void PartyRecv::processPartyInfo(Net::MessageIn &msg) for (int i = 0; i < count; i++) { const BeingId id = msg.readBeingId("account id"); + if (msg.getVersion() >= 20171207) + msg.readBeingId("char id"); std::string nick = msg.readString(24, "nick"); std::string map = msg.readString(16, "map name"); const bool leader = msg.readUInt8("leader") == 0U; -- cgit v1.2.3-70-g09d2