Core/Config: Refactored ConfigMgr
* Loading initial configuration files is now separate from loading any additional custom configs
This commit is contained in:
1 parent
baeecba6c9
commit
779a59e7e2
16 files changed
+470
-424
No files matched your search
@@ -2123,7 +2123,7 @@ bool Guild::Validate()
|
||||
_SetLeaderGUID(pLeader);
|
||||
|
||||
// Check config if multiple guildmasters are allowed
|
||||
if (!ConfigMgr::GetBoolDefault("Guild.AllowMultipleGuildMaster", 0))
|
||||
if (!sConfigMgr->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