summaryrefslogtreecommitdiff
path: root/src/net/eathena/partyrecv.cpp
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 /src/net/eathena/partyrecv.cpp
parentc5f42689b4950ae4759031f2094be3693779d2c6 (diff)
downloadManaVerse-b851d777aef4b13917e22d75292f596232ce03a0.tar.gz
ManaVerse-b851d777aef4b13917e22d75292f596232ce03a0.tar.bz2
ManaVerse-b851d777aef4b13917e22d75292f596232ce03a0.tar.xz
ManaVerse-b851d777aef4b13917e22d75292f596232ce03a0.zip
Fix party invite response (hercules)
Diffstat (limited to 'src/net/eathena/partyrecv.cpp')
-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