Fix crash with AutoDoQuest = 0

This commit is contained in:
Yunfan Li 2025-07-24 22:36:13 +08:00
parent 4bf5217d9c
commit 160792c8a4

View File

@ -619,13 +619,6 @@ bool PlayerbotAIConfig::Initialize()
AiObjectContext::BuildAllSharedContexts(); AiObjectContext::BuildAllSharedContexts();
if (!sPlayerbotAIConfig->autoDoQuests)
{
LOG_INFO("server.loading", "Loading Quest Detail Data...");
sTravelMgr->LoadQuestTravelTable();
}
if (sPlayerbotAIConfig->randomBotSuggestDungeons) if (sPlayerbotAIConfig->randomBotSuggestDungeons)
{ {
sPlayerbotDungeonSuggestionMgr->LoadDungeonSuggestions(); sPlayerbotDungeonSuggestionMgr->LoadDungeonSuggestions();