summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Behaviors
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2017-08-31 12:54:57 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2017-08-31 12:54:57 +0200
commit9bd939dc985be53eee675a22e91f43e3b9b6edca (patch)
treeda4a42e644a7822898e8f954cb5ed965969cc7c0 /src/Mobs/Behaviors
parentPathfinder DontCare now a member variable (diff)
downloadcuberite-9bd939dc985be53eee675a22e91f43e3b9b6edca.tar
cuberite-9bd939dc985be53eee675a22e91f43e3b9b6edca.tar.gz
cuberite-9bd939dc985be53eee675a22e91f43e3b9b6edca.tar.bz2
cuberite-9bd939dc985be53eee675a22e91f43e3b9b6edca.tar.lz
cuberite-9bd939dc985be53eee675a22e91f43e3b9b6edca.tar.xz
cuberite-9bd939dc985be53eee675a22e91f43e3b9b6edca.tar.zst
cuberite-9bd939dc985be53eee675a22e91f43e3b9b6edca.zip
Diffstat (limited to 'src/Mobs/Behaviors')
-rw-r--r--src/Mobs/Behaviors/BehaviorWanderer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Behaviors/BehaviorWanderer.cpp b/src/Mobs/Behaviors/BehaviorWanderer.cpp
index 309883c01..a37609aa4 100644
--- a/src/Mobs/Behaviors/BehaviorWanderer.cpp
+++ b/src/Mobs/Behaviors/BehaviorWanderer.cpp
@@ -39,7 +39,7 @@ bool cBehaviorWanderer::ControlStarting(std::chrono::milliseconds a_Dt, cChunk &
{
UNUSED(a_Dt);
UNUSED(a_Chunk);
- m_OldDontCare = m_Parent->GetPathFinder().getDontCare(true);
+ m_OldDontCare = m_Parent->GetPathFinder().getDontCare();
m_Parent->GetPathFinder().setDontCare(true); // We don't care we're we are going when
// wandering. If a path is not found, the pathfinder just modifies our destination.
return true;