mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-12-01 21:12:50 +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())
|
||||
return;
|
||||
|
||||
if (!bot || !bot->IsInWorld()) {
|
||||
if (!bot || !bot->IsInWorld() || !bot->IsDuringRemoveFromWorld()) {
|
||||
return;
|
||||
}
|
||||
switch (packet.GetOpcode())
|
||||
|
||||
Reference in New Issue
Block a user