Only invoke InitGuild when randomBotGuildCount > 0 (#975)

* Only invoke InitGuild when randomBotGuildCount > 0

* Moved Random bot guild count/delete to more appropriate section of config.
This commit is contained in:
SaW
2025-02-16 13:42:15 +01:00
committed by GitHub
parent 6749a4257b
commit 58a596a40e
2 changed files with 11 additions and 8 deletions

View File

@@ -392,9 +392,12 @@ void PlayerbotFactory::Randomize(bool incremental)
// bot->SaveToDB(false, false);
// pmo = sPerformanceMonitor->start(PERF_MON_RNDBOT, "PlayerbotFactory_Guilds");
// LOG_INFO("playerbots", "Initializing guilds...");
// bot->SaveToDB(false, false);
InitGuild();
if (sPlayerbotAIConfig->randomBotGuildCount > 0)
{
LOG_INFO("playerbots", "Initializing guilds...");
InitGuild();
}
// bot->SaveToDB(false, false);
// if (pmo)
// pmo->finish();