diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-10 21:13:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-10 21:13:14 +0300 |
commit | 783aacf002d7f01d1be0ee46e4f42e8c31632c2e (patch) | |
tree | abbc5fcd75380dd5c62a2d0240e8c83d87be95aa /src/net/eathena/partyhandler.cpp | |
parent | dbc2777989e3646dad554e16acb9c49e9b722adb (diff) | |
download | ManaVerse-783aacf002d7f01d1be0ee46e4f42e8c31632c2e.tar.gz ManaVerse-783aacf002d7f01d1be0ee46e4f42e8c31632c2e.tar.bz2 ManaVerse-783aacf002d7f01d1be0ee46e4f42e8c31632c2e.tar.xz ManaVerse-783aacf002d7f01d1be0ee46e4f42e8c31632c2e.zip |
In party handler in changeLeader accept player nick.
Diffstat (limited to 'src/net/eathena/partyhandler.cpp')
-rw-r--r-- | src/net/eathena/partyhandler.cpp | 4 |
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); |