mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
crash fix 3
This commit is contained in:
@@ -1375,7 +1375,7 @@ PlayerbotAI* PlayerbotsMgr::GetPlayerbotAI(Player* player)
|
|||||||
{
|
{
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
if (player->GetSession()->isLogingOut()) {
|
if (player->GetSession()->isLogingOut() || player->IsDuringRemoveFromWorld()) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
auto itr = _playerbotsMap.find(player->GetGUID());
|
auto itr = _playerbotsMap.find(player->GetGUID());
|
||||||
|
|||||||
Reference in New Issue
Block a user