Fix initself crash (#1488)

This commit is contained in:
Yunfan Li
2025-08-02 01:15:59 +08:00
committed by GitHub
parent 65a3bf481c
commit baa1aa9e9d

View File

@@ -3331,7 +3331,7 @@ void PlayerbotFactory::InitReagents()
void PlayerbotFactory::InitGlyphs(bool increment)
{
bot->InitGlyphsForLevel();
if (!increment &&
if (!increment && botAI &&
botAI->GetAiObjectContext()->GetValue<bool>("custom_glyphs")->Get())
return; // // Added for custom Glyphs - custom glyphs flag test