Changeset 229 for trunk/src/game/Guild.h

Show
Ignore:
Timestamp:
11/19/08 13:48:34 (17 years ago)
Author:
yumileroy
Message:

[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.

Original author: visagalis
Date: 2008-11-14 16:28:45-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/Guild.h

    r177 r229  
    331331        { 
    332332            return (members.find(LowGuid) != members.end()); 
     333        } 
     334        MemberSlot* GetMemberSlot(std::string const& name, uint64& guid) 
     335        { 
     336            for(MemberList::iterator itr = members.begin(); itr != members.end(); ++itr) 
     337            { 
     338                if(itr->second.name == name) 
     339                { 
     340                    guid = itr->first; 
     341                    return &itr->second; 
     342                } 
     343            } 
     344            return NULL; 
    333345        } 
    334346