Core/MMaps: Fix crash added in 386b5a6fd948b4866cbd9a8a9892e8777922e9c9

(cherry picked from commit 17bb608a5e77345948a8c4f28d78e2cba5302505)
This commit is contained in:
jackpoz
2021-11-27 01:40:13 +01:00
committed by Shauren
parent f41d2d109f
commit aeece162b9
@@ -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)