From b851d777aef4b13917e22d75292f596232ce03a0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 18 Nov 2015 20:29:38 +0300 Subject: Fix party invite response (hercules) --- src/net/eathena/partyrecv.cpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'src/net/eathena/partyrecv.cpp') diff --git a/src/net/eathena/partyrecv.cpp b/src/net/eathena/partyrecv.cpp index a5359aac5..3763eb1f5 100644 --- a/src/net/eathena/partyrecv.cpp +++ b/src/net/eathena/partyrecv.cpp @@ -304,23 +304,11 @@ void PartyRecv::processPartyLeader(Net::MessageIn &msg) void PartyRecv::processPartyInvited(Net::MessageIn &msg) { - const BeingId id = msg.readBeingId("account id"); + const int id = msg.readInt32("party id"); const std::string partyName = msg.readString(24, "party name"); - std::string nick; - - if (actorManager) - { - const Being *const being = actorManager->findBeing(id); - if (being) - { - if (being->getType() == ActorType::Player) - nick = being->getName(); - } - } - if (socialWindow) - socialWindow->showPartyInvite(partyName, nick, 0); + socialWindow->showPartyInvite(partyName, std::string(), id); } } // namespace EAthena -- cgit v1.2.3-60-g2f50