diff options
Diffstat (limited to 'src/Mobs/Monster.cpp')
-rw-r--r-- | src/Mobs/Monster.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp index 013a14953..0e0197e3d 100644 --- a/src/Mobs/Monster.cpp +++ b/src/Mobs/Monster.cpp @@ -518,7 +518,7 @@ void cMonster::CalcLeashActions() void cMonster::SetPitchAndYawFromDestination(bool a_IsFollowingPath) { Vector3d BodyDistance; - cPawn * LookingAt = m_LookingAt.GetPointer(); + cPawn * LookingAt = m_LookingAt.GetPointer(GetWorld()); if (!a_IsFollowingPath && (LookingAt != nullptr)) { BodyDistance = LookingAt->GetPosition() - GetPosition(); |