diff options
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/partyhandler.cpp | 4 | ||||
-rw-r--r-- | src/net/eathena/partyhandler.h | 2 |
2 files changed, 4 insertions, 2 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); diff --git a/src/net/eathena/partyhandler.h b/src/net/eathena/partyhandler.h index 16fa690bf..9459d0328 100644 --- a/src/net/eathena/partyhandler.h +++ b/src/net/eathena/partyhandler.h @@ -61,7 +61,7 @@ class PartyHandler final : public MessageHandler, public Ea::PartyHandler void setShareItems(const Net::PartyShare::Type share) const override final; - void changeLeader(const Being *const being) const override final; + void changeLeader(const std::string &name) const override final; void processPartySettings(Net::MessageIn &msg); |