summaryrefslogtreecommitdiffstats
path: root/src/Mobs/PathFinder.h
diff options
context:
space:
mode:
authorSafwat Halaby <SafwatHalaby@users.noreply.github.com>2015-12-21 16:37:19 +0100
committerSafwat Halaby <SafwatHalaby@users.noreply.github.com>2015-12-21 16:37:19 +0100
commite6d74553a2a2f01037051651f8421e02579416aa (patch)
tree7e2691d58bb11479bd280155b4f5f62466082818 /src/Mobs/PathFinder.h
parentMerge pull request #2783 from cuberite/seadragon91-patch-spawnpoint-fix (diff)
parentRevert "Changed cPath to have a reset method". (diff)
downloadcuberite-e6d74553a2a2f01037051651f8421e02579416aa.tar
cuberite-e6d74553a2a2f01037051651f8421e02579416aa.tar.gz
cuberite-e6d74553a2a2f01037051651f8421e02579416aa.tar.bz2
cuberite-e6d74553a2a2f01037051651f8421e02579416aa.tar.lz
cuberite-e6d74553a2a2f01037051651f8421e02579416aa.tar.xz
cuberite-e6d74553a2a2f01037051651f8421e02579416aa.tar.zst
cuberite-e6d74553a2a2f01037051651f8421e02579416aa.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 1570679bf..312bb950c 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. */
- cPath m_Path;
+ std::unique_ptr<cPath> m_Path;
/** If 0, will give up reaching the next m_WayPoint and will recalculate path. */
int m_GiveUpCounter;