Several crash fixes

This commit is contained in:
郑佩茹
2022-03-23 10:53:04 -06:00
parent f1bcca1a7b
commit 180014eb88
2 changed files with 5 additions and 1 deletions

View File

@@ -250,7 +250,7 @@ void PlayerbotAI::UpdateAI(uint32 elapsed, bool minimal)
UpdateAIInternal(elapsed, min);
// test fix lags because of BG
if (!bot->IsInCombat())
if (bot && !bot->IsInCombat())
min = true;
YieldThread(min);