From 98560a18555824b172d54c017b9deabbe9d8215f Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Fri, 5 Jul 2024 12:01:25 +0800 Subject: [PATCH] [Initialization] Stop server after accounts deletion --- src/PlayerbotAIConfig.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/PlayerbotAIConfig.cpp b/src/PlayerbotAIConfig.cpp index 34e7a1bb..d468533c 100644 --- a/src/PlayerbotAIConfig.cpp +++ b/src/PlayerbotAIConfig.cpp @@ -327,6 +327,9 @@ bool PlayerbotAIConfig::Initialize() selfBotLevel = sConfigMgr->GetOption("AiPlayerbot.SelfBotLevel", 1); RandomPlayerbotFactory::CreateRandomBots(); + if (World::IsStopped()) { + return true; + } PlayerbotFactory::Init(); sRandomItemMgr->Init(); sRandomItemMgr->InitAfterAhBot();