summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-18 20:29:38 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-18 20:29:38 +0300
commitb851d777aef4b13917e22d75292f596232ce03a0 (patch)
treea3208be30590ac6ffda45a54233e3961d91140eb
parentc5f42689b4950ae4759031f2094be3693779d2c6 (diff)
downloadmv-b851d777aef4b13917e22d75292f596232ce03a0.tar.gz
mv-b851d777aef4b13917e22d75292f596232ce03a0.tar.bz2
mv-b851d777aef4b13917e22d75292f596232ce03a0.tar.xz
mv-b851d777aef4b13917e22d75292f596232ce03a0.zip
Fix party invite response (hercules)
-rw-r--r--src/net/eathena/partyrecv.cpp16
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