Core/MMaps: Fix crash added in 386b5a6fd9

(cherry picked from commit 17bb608a5e)
This commit is contained in:
jackpoz
2019-04-14 11:46:51 +02:00
committed by Shauren
parent f41d2d109f
commit aeece162b9

View File

@@ -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)