mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Core/Guilds: fixed small logical error when counting total loaded guilds
--HG-- branch : trunk
This commit is contained in:
@@ -3739,13 +3739,16 @@ void ObjectMgr::LoadGuilds()
|
||||
{
|
||||
barGuilds.step();
|
||||
Guild* pGuild = *itr;
|
||||
if (pGuild && !pGuild->Validate())
|
||||
if (pGuild)
|
||||
{
|
||||
RemoveGuild(pGuild->GetId());
|
||||
delete pGuild;
|
||||
if (!pGuild->Validate())
|
||||
{
|
||||
RemoveGuild(pGuild->GetId());
|
||||
delete pGuild;
|
||||
}
|
||||
else
|
||||
++totalGuilds;
|
||||
}
|
||||
else
|
||||
++totalGuilds;
|
||||
}
|
||||
// Cleanup
|
||||
// Delete orphan guild ranks
|
||||
|
||||
Reference in New Issue
Block a user