mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-16 10:20:27 +00:00
[Crash fix] Target IsInWorld check
This commit is contained in:
@@ -63,6 +63,10 @@ bool AttackAction::Attack(Unit* target, bool with_pet /*true*/)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!target->IsInWorld())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
std::ostringstream msg;
|
||||
msg << target->GetName();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user