Configuration/ConfigMgr: converted from singleton to namespace with free functions.
This commit is contained in:
@@ -2022,7 +2022,7 @@ bool Guild::Validate()
|
||||
_SetLeaderGUID(pLeader);
|
||||
|
||||
// Check config if multiple guildmasters are allowed
|
||||
if (!sConfig->GetBoolDefault("Guild.AllowMultipleGuildMaster", 0))
|
||||
if (!ConfigMgr::GetBoolDefault("Guild.AllowMultipleGuildMaster", 0))
|
||||
for (Members::iterator itr = m_members.begin(); itr != m_members.end(); ++itr)
|
||||
if (itr->second->GetRankId() == GR_GUILDMASTER && !itr->second->IsSamePlayer(m_leaderGuid))
|
||||
itr->second->ChangeRank(GR_OFFICER);
|
||||
|
||||
Reference in New Issue
Block a user