diff options
author | visagalis <none@none> | 2008-11-14 16:28:45 -0600 |
---|---|---|
committer | visagalis <none@none> | 2008-11-14 16:28:45 -0600 |
commit | d1e759479b3f31cccc270e40d3e6af13204eb627 (patch) | |
tree | 59ff1f0ae9e3537bdcd1aba10141a83d18fb02ab /src/game/Guild.h | |
parent | eefcc9026b638ba1e114b208ce8f40e9d49bdf65 (diff) |
[svn] *** Source: MaNGOS ***
* Fixed build extractor at Windows Vista. Author: Vladimir
* Fixed comment text and code indentifiers spelling. Author: Vladimir & Paradox.
* Access cached member lists in guild handlers instead of querying the DB. Author: Hunuza
* Small fixes in send/received packet and simple code cleanup also. Author: Vladimir
* Not output error at loading empty character_ticket table. Author: Vladimir
* Not reset display model at shapeshift aura remove if it not set at apply. Author: Arthorius
* Applied props to few files.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Guild.h')
-rw-r--r-- | src/game/Guild.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/game/Guild.h b/src/game/Guild.h index 0e0e99b2cd4..839b8dd17f0 100644 --- a/src/game/Guild.h +++ b/src/game/Guild.h @@ -331,6 +331,18 @@ class Guild { return (members.find(LowGuid) != members.end()); } + MemberSlot* GetMemberSlot(std::string const& name, uint64& guid) + { + for(MemberList::iterator itr = members.begin(); itr != members.end(); ++itr) + { + if(itr->second.name == name) + { + guid = itr->first; + return &itr->second; + } + } + return NULL; + } void Roster(WorldSession *session); void Query(WorldSession *session); |