mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Core/MMaps: Fix crash added in 386b5a6fd9
(cherry picked from commit 17bb608a5e)
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