summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Wolf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Mobs/Wolf.cpp')
-rw-r--r--src/Mobs/Wolf.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Mobs/Wolf.cpp b/src/Mobs/Wolf.cpp
index c755e9058..6e0431d16 100644
--- a/src/Mobs/Wolf.cpp
+++ b/src/Mobs/Wolf.cpp
@@ -228,15 +228,11 @@ void cWolf::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
}
else
{
+ MoveToPosition(m_Target->GetPosition());
if (TargetIsInRange())
{
- StopMovingToPosition();
Attack(a_Dt);
}
- else
- {
- MoveToPosition(m_Target->GetPosition());
- }
}
}