Core/MMaps: Fix crash added in 386b5a6fd948b4866cbd9a8a9892e8777922e9c9
(cherry picked from commit 17bb608a5e77345948a8c4f28d78e2cba5302505)
This commit is contained in:
@@ -184,7 +184,7 @@ bool ChaseMovementGenerator::Update(Unit* owner, uint32 diff)
|
||||
if (owner->IsHovering())
|
||||
owner->UpdateAllowedPositionZ(x, y, z);
|
||||
|
||||
bool success = _path->CalculatePath(x, y, z, cOwner->CanFly());
|
||||
bool success = _path->CalculatePath(x, y, z, owner->CanFly());
|
||||
if (!success || (_path->GetPathType() & (PATHFIND_NOPATH | PATHFIND_INCOMPLETE)))
|
||||
{
|
||||
if (cOwner)
|
||||
|
||||
Reference in New Issue
Block a user