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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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