mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 02:20:00 +01:00
fix crash issue
This commit is contained in:
parent
0d851002f2
commit
5d05db4673
@ -1132,7 +1132,7 @@ void PlayerbotMgr::HandleMasterOutgoingPacket(WorldPacket const& packet)
|
|||||||
{
|
{
|
||||||
Player* const bot = it->second;
|
Player* const bot = it->second;
|
||||||
PlayerbotAI* botAI = GET_PLAYERBOT_AI(bot);
|
PlayerbotAI* botAI = GET_PLAYERBOT_AI(bot);
|
||||||
if (botAI->GetMaster() == GetMaster())
|
if (botAI && botAI->GetMaster() == GetMaster())
|
||||||
botAI->HandleMasterOutgoingPacket(packet);
|
botAI->HandleMasterOutgoingPacket(packet);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user