summaryrefslogtreecommitdiffstats
path: root/src/Mobs/PathFinder.h
diff options
context:
space:
mode:
authorSafwat Halaby <SafwatHalaby@users.noreply.github.com>2015-12-16 17:39:23 +0100
committerSafwat Halaby <SafwatHalaby@users.noreply.github.com>2015-12-16 17:39:23 +0100
commit3c1f9e8a3a0c70d82f2145f1e03ba846ad2a6399 (patch)
tree2d9f76057167d166516658f7be4dc3aab82e001d /src/Mobs/PathFinder.h
parentMerge pull request #2754 from Gargaj/horsefix (diff)
parentChanged cPath to have a reset method. (diff)
downloadcuberite-3c1f9e8a3a0c70d82f2145f1e03ba846ad2a6399.tar
cuberite-3c1f9e8a3a0c70d82f2145f1e03ba846ad2a6399.tar.gz
cuberite-3c1f9e8a3a0c70d82f2145f1e03ba846ad2a6399.tar.bz2
cuberite-3c1f9e8a3a0c70d82f2145f1e03ba846ad2a6399.tar.lz
cuberite-3c1f9e8a3a0c70d82f2145f1e03ba846ad2a6399.tar.xz
cuberite-3c1f9e8a3a0c70d82f2145f1e03ba846ad2a6399.tar.zst
cuberite-3c1f9e8a3a0c70d82f2145f1e03ba846ad2a6399.zip
Diffstat (limited to 'src/Mobs/PathFinder.h')
-rw-r--r--src/Mobs/PathFinder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/PathFinder.h b/src/Mobs/PathFinder.h
index 312bb950c..1570679bf 100644
--- a/src/Mobs/PathFinder.h
+++ b/src/Mobs/PathFinder.h
@@ -52,7 +52,7 @@ private:
double m_Height;
/** The current cPath instance we have. This is discarded and recreated when a path recalculation is needed. */
- std::unique_ptr<cPath> m_Path;
+ cPath m_Path;
/** If 0, will give up reaching the next m_WayPoint and will recalculate path. */
int m_GiveUpCounter;