mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 02:20:00 +01:00
try to fix HandleBotOutgoingPacket coredump
This commit is contained in:
parent
44a9949c26
commit
d1eacd725d
@ -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())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user