summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Wolf.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-01-24 20:57:32 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-01-24 20:57:32 +0100
commit9c0e3615ce61dba0ae973b97807833bd6ddd5bda (patch)
treef19c645c9d41539064cb23b0448ed7794114c5d9 /src/Mobs/Wolf.cpp
parentFixed mobs too close to player not ticking (diff)
downloadcuberite-9c0e3615ce61dba0ae973b97807833bd6ddd5bda.tar
cuberite-9c0e3615ce61dba0ae973b97807833bd6ddd5bda.tar.gz
cuberite-9c0e3615ce61dba0ae973b97807833bd6ddd5bda.tar.bz2
cuberite-9c0e3615ce61dba0ae973b97807833bd6ddd5bda.tar.lz
cuberite-9c0e3615ce61dba0ae973b97807833bd6ddd5bda.tar.xz
cuberite-9c0e3615ce61dba0ae973b97807833bd6ddd5bda.tar.zst
cuberite-9c0e3615ce61dba0ae973b97807833bd6ddd5bda.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Wolf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Wolf.cpp b/src/Mobs/Wolf.cpp
index 3d4e97c80..483f1d193 100644
--- a/src/Mobs/Wolf.cpp
+++ b/src/Mobs/Wolf.cpp
@@ -108,7 +108,7 @@ void cWolf::Tick(float a_Dt, cChunk & a_Chunk)
m_bMovingToDestination = false;
}
- cPlayer * a_Closest_Player = FindClosestPlayer();
+ cPlayer * a_Closest_Player = m_World->FindClosestPlayer(GetPosition(), m_SightDistance);
if (a_Closest_Player != NULL)
{
switch (a_Closest_Player->GetEquippedItem().m_ItemType)