summaryrefslogtreecommitdiff
path: root/src/guild.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-09-25 21:29:33 +0300
committerAndrei Karas <akaras@inbox.ru>2018-09-25 21:29:33 +0300
commitdf0761d02f541723a4d127ef1d252cfa66e6a852 (patch)
treea2bb25eeccb1755bc3757026d98953069da7b1c7 /src/guild.cpp
parent600bd9adc18e2c8b5f62e998779c1e1650272cc0 (diff)
downloadManaVerse-df0761d02f541723a4d127ef1d252cfa66e6a852.tar.gz
ManaVerse-df0761d02f541723a4d127ef1d252cfa66e6a852.tar.bz2
ManaVerse-df0761d02f541723a4d127ef1d252cfa66e6a852.tar.xz
ManaVerse-df0761d02f541723a4d127ef1d252cfa66e6a852.zip
Add packet SMSG_GUILD_LEAVE2 0x0a83.
Diffstat (limited to 'src/guild.cpp')
-rw-r--r--src/guild.cpp17
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();