summaryrefslogtreecommitdiff
path: root/src/net/eathena/partyhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/partyhandler.cpp')
-rw-r--r--src/net/eathena/partyhandler.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/eathena/partyhandler.cpp b/src/net/eathena/partyhandler.cpp
index 4ea0e83ea..182ea4957 100644
--- a/src/net/eathena/partyhandler.cpp
+++ b/src/net/eathena/partyhandler.cpp
@@ -445,8 +445,10 @@ void PartyHandler::processPartyInviteResponse(Net::MessageIn &msg) const
}
}
-void PartyHandler::changeLeader(const Being *const being) const
+void PartyHandler::changeLeader(const std::string &name) const
{
+ const Being *const being = actorManager->findBeingByName(
+ name, ActorType::PLAYER);
if (!being)
return;
MessageOut outMsg(CMSG_PARTY_CHANGE_LEADER);