diff options
author | Mattes D <github@xoft.cz> | 2015-05-03 11:51:09 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-05-03 11:51:09 +0200 |
commit | d757d75b6c5e1e8e604b544d73e6292a09781b1a (patch) | |
tree | 97167cb6cee1137db10569875158dd3e65aa5e73 /src/Mobs/Monster.cpp | |
parent | Fixed multiple mbedtls inclusion. (diff) | |
parent | PathFinder - Crash fix, chunks in parameters are now references (diff) | |
download | cuberite-d757d75b6c5e1e8e604b544d73e6292a09781b1a.tar cuberite-d757d75b6c5e1e8e604b544d73e6292a09781b1a.tar.gz cuberite-d757d75b6c5e1e8e604b544d73e6292a09781b1a.tar.bz2 cuberite-d757d75b6c5e1e8e604b544d73e6292a09781b1a.tar.lz cuberite-d757d75b6c5e1e8e604b544d73e6292a09781b1a.tar.xz cuberite-d757d75b6c5e1e8e604b544d73e6292a09781b1a.tar.zst cuberite-d757d75b6c5e1e8e604b544d73e6292a09781b1a.zip |
Diffstat (limited to 'src/Mobs/Monster.cpp')
-rw-r--r-- | src/Mobs/Monster.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp index 9b9bec51e..bce8467ba 100644 --- a/src/Mobs/Monster.cpp +++ b/src/Mobs/Monster.cpp @@ -131,12 +131,12 @@ void cMonster::TickPathFinding(cChunk & a_Chunk) // Can someone explain why are these two NOT THE SAME??? // m_Path = new cPath(GetWorld(), GetPosition(), m_FinalDestination, 30); - m_Path = new cPath(&a_Chunk, Vector3d(floor(position.x), floor(position.y), floor(position.z)), Vector3d(floor(Dest.x), floor(Dest.y), floor(Dest.z)), 20); + m_Path = new cPath(a_Chunk, Vector3d(floor(position.x), floor(position.y), floor(position.z)), Vector3d(floor(Dest.x), floor(Dest.y), floor(Dest.z)), 20); m_IsFollowingPath = false; } - m_PathStatus = m_Path->Step(&a_Chunk); + m_PathStatus = m_Path->Step(a_Chunk); switch (m_PathStatus) { |