mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
try to fix HandleBotOutgoingPacket coredump
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user