crash fix 2

This commit is contained in:
Yunfan Li
2023-12-17 10:08:03 +08:00
parent 4007ce2692
commit dbbfc4e754

View File

@@ -1375,6 +1375,9 @@ PlayerbotAI* PlayerbotsMgr::GetPlayerbotAI(Player* player)
{
return nullptr;
}
if (player->GetSession()->isLogingOut()) {
return nullptr;
}
auto itr = _playerbotsMap.find(player->GetGUID());
if (itr != _playerbotsMap.end())
{