diff options
author | KingPin <none@none> | 2008-11-06 08:20:26 -0600 |
---|---|---|
committer | KingPin <none@none> | 2008-11-06 08:20:26 -0600 |
commit | 5746d0e98d8a5c4af96102835d501c47ed370def (patch) | |
tree | a17851f0bc08626df74b690df53f28754e9e89fe /src/game/Guild.h | |
parent | c74f9b4a685a899091dc7cb1b5db5c494ed12b9a (diff) |
[svn] * Avoid access to bag item prototype for getting bag size, use related item
update field instead as more fast source. source mangos.
* Further reduce of DB access in guild handlers.
* Multi-locale DBC extracting - source Foks
*** Devs not responsible if all your player items drop to the ground and get eaten by ants or rabbits.. or some kind of wierd ant-rabbits..
--HG--
branch : trunk
Diffstat (limited to 'src/game/Guild.h')
-rw-r--r-- | src/game/Guild.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/Guild.h b/src/game/Guild.h index d1431c287bd..0e0e99b2cd4 100644 --- a/src/game/Guild.h +++ b/src/game/Guild.h @@ -327,6 +327,10 @@ class Guild return ((GetRankRights(rankId) & right) != GR_RIGHT_EMPTY) ? true : false; } int32 GetRank(uint32 LowGuid); + bool IsMember(uint32 LowGuid) + { + return (members.find(LowGuid) != members.end()); + } void Roster(WorldSession *session); void Query(WorldSession *session); |