summaryrefslogtreecommitdiffstats
path: root/src/Mobs/PathFinder.h
diff options
context:
space:
mode:
authorSafwat Halaby <SafwatHalaby@users.noreply.github.com>2015-12-21 15:47:43 +0100
committerSafwat Halaby <SafwatHalaby@users.noreply.github.com>2015-12-21 15:47:43 +0100
commitb4874d213c279ee102a5fdc103dc098911f4255b (patch)
tree7e2691d58bb11479bd280155b4f5f62466082818 /src/Mobs/PathFinder.h
parentMerge pull request #2783 from cuberite/seadragon91-patch-spawnpoint-fix (diff)
downloadcuberite-b4874d213c279ee102a5fdc103dc098911f4255b.tar
cuberite-b4874d213c279ee102a5fdc103dc098911f4255b.tar.gz
cuberite-b4874d213c279ee102a5fdc103dc098911f4255b.tar.bz2
cuberite-b4874d213c279ee102a5fdc103dc098911f4255b.tar.lz
cuberite-b4874d213c279ee102a5fdc103dc098911f4255b.tar.xz
cuberite-b4874d213c279ee102a5fdc103dc098911f4255b.tar.zst
cuberite-b4874d213c279ee102a5fdc103dc098911f4255b.zip
Diffstat (limited to '')
-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;