try to fix HandleBotOutgoingPacket coredump

This commit is contained in:
Yunfan Li
2023-08-09 12:38:39 +08:00
parent 5feb47d5ed
commit cc0a874a4c

View File

@@ -639,7 +639,10 @@ void PlayerbotAI::HandleBotOutgoingPacket(WorldPacket const& packet)
{
if (packet.empty())
return;
if (!bot || !bot->IsInWorld()) {
return;
}
switch (packet.GetOpcode())
{
case SMSG_SPELL_FAILURE: