diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-18 20:29:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-18 20:29:38 +0300 |
commit | b851d777aef4b13917e22d75292f596232ce03a0 (patch) | |
tree | a3208be30590ac6ffda45a54233e3961d91140eb /src | |
parent | c5f42689b4950ae4759031f2094be3693779d2c6 (diff) | |
download | plus-b851d777aef4b13917e22d75292f596232ce03a0.tar.gz plus-b851d777aef4b13917e22d75292f596232ce03a0.tar.bz2 plus-b851d777aef4b13917e22d75292f596232ce03a0.tar.xz plus-b851d777aef4b13917e22d75292f596232ce03a0.zip |
Fix party invite response (hercules)
Diffstat (limited to 'src')
-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 |