diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-09-25 21:29:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-09-25 21:29:33 +0300 |
commit | df0761d02f541723a4d127ef1d252cfa66e6a852 (patch) | |
tree | a2bb25eeccb1755bc3757026d98953069da7b1c7 /src/guild.cpp | |
parent | 600bd9adc18e2c8b5f62e998779c1e1650272cc0 (diff) | |
download | plus-df0761d02f541723a4d127ef1d252cfa66e6a852.tar.gz plus-df0761d02f541723a4d127ef1d252cfa66e6a852.tar.bz2 plus-df0761d02f541723a4d127ef1d252cfa66e6a852.tar.xz plus-df0761d02f541723a4d127ef1d252cfa66e6a852.zip |
Add packet SMSG_GUILD_LEAVE2 0x0a83.
Diffstat (limited to 'src/guild.cpp')
-rw-r--r-- | src/guild.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/guild.cpp b/src/guild.cpp index 35349e5d3..b188bf864 100644 --- a/src/guild.cpp +++ b/src/guild.cpp @@ -169,6 +169,23 @@ GuildMember *Guild::getMember(const BeingId accountId, return nullptr; } +GuildMember *Guild::getMemberByCharId(const int charId) const +{ + MemberList::const_iterator itr = mMembers.begin(); + const MemberList::const_iterator itr_end = mMembers.end(); + while (itr != itr_end) + { + if ((*itr) != nullptr && + (*itr)->mCharId == charId) + { + return (*itr); + } + ++itr; + } + + return nullptr; +} + GuildMember *Guild::getMember(const std::string &name) const { MemberList::const_iterator itr = mMembers.begin(); |