From f1fcca9730e0224668e5edd74856bd4a816adee4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 19 Aug 2016 23:04:11 +0300 Subject: Fix reading packet SMSG_PARTY_INFO if it was sent in wrong way. --- src/net/eathena/partyrecv.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/net/eathena/partyrecv.cpp b/src/net/eathena/partyrecv.cpp index 4fdb37ef2..f509d55c5 100644 --- a/src/net/eathena/partyrecv.cpp +++ b/src/net/eathena/partyrecv.cpp @@ -135,8 +135,9 @@ void PartyRecv::processPartyInfo(Net::MessageIn &msg) Ea::taParty->clearMembers(); const int length = msg.readInt16("len"); + const std::string name = msg.readString(24, "party name"); if (Ea::taParty) - Ea::taParty->setName(msg.readString(24, "party name")); + Ea::taParty->setName(name); const int count = (length - 28) / 46; if (localPlayer && Ea::taParty) -- cgit v1.2.3-70-g09d2