summaryrefslogtreecommitdiffstats
path: root/src/Mobs/PathFinder.h
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2015-12-15 01:16:36 +0100
committerLukas Pioch <lukas@zgow.de>2015-12-15 01:16:36 +0100
commit1515d37684b469f212bb9858cca6128d74e591b6 (patch)
tree56094fc34363c2afdfb9eb3cc444f15646945e85 /src/Mobs/PathFinder.h
parentMerge pull request #2638 from Gargaj/master (diff)
downloadcuberite-1515d37684b469f212bb9858cca6128d74e591b6.tar
cuberite-1515d37684b469f212bb9858cca6128d74e591b6.tar.gz
cuberite-1515d37684b469f212bb9858cca6128d74e591b6.tar.bz2
cuberite-1515d37684b469f212bb9858cca6128d74e591b6.tar.lz
cuberite-1515d37684b469f212bb9858cca6128d74e591b6.tar.xz
cuberite-1515d37684b469f212bb9858cca6128d74e591b6.tar.zst
cuberite-1515d37684b469f212bb9858cca6128d74e591b6.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;