diff options
-rw-r--r-- | src/net/eathena/partyrecv.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
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 |