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,8 +639,7 @@ void PlayerbotAI::HandleBotOutgoingPacket(WorldPacket const& packet)
|
|||||||
{
|
{
|
||||||
if (packet.empty())
|
if (packet.empty())
|
||||||
return;
|
return;
|
||||||
|
if (!bot || !bot->IsInWorld() || !bot->IsDuringRemoveFromWorld()) {
|
||||||
if (!bot || !bot->IsInWorld()) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
switch (packet.GetOpcode())
|
switch (packet.GetOpcode())
|
||||||
|
|||||||
Reference in New Issue
Block a user