Core/Guilds: fixed small logical error when counting total loaded guilds
--HG-- branch : trunk
This commit is contained in:
@@ -3739,7 +3739,9 @@ void ObjectMgr::LoadGuilds()
|
||||
{
|
||||
barGuilds.step();
|
||||
Guild* pGuild = *itr;
|
||||
if (pGuild && !pGuild->Validate())
|
||||
if (pGuild)
|
||||
{
|
||||
if (!pGuild->Validate())
|
||||
{
|
||||
RemoveGuild(pGuild->GetId());
|
||||
delete pGuild;
|
||||
@@ -3747,6 +3749,7 @@ void ObjectMgr::LoadGuilds()
|
||||
else
|
||||
++totalGuilds;
|
||||
}
|
||||
}
|
||||
// Cleanup
|
||||
// Delete orphan guild ranks
|
||||
stmt = CharacterDatabase.GetPreparedStatement(CHAR_CLEAN_GUILD_RANKS);
|
||||
|
||||
Reference in New Issue
Block a user