summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2015-05-06 21:41:17 +0200
committerAlexander Harkness <me@bearbin.net>2015-05-06 21:41:17 +0200
commit9544020477c9761538fdbfd245a221b4018dc429 (patch)
tree02993814a6ecb05b4bd879442e8816e3a5bf8acf /src
parentAdded info about case-sensitivity of FindAndDoWithPlayer (diff)
parentActually empty the open list (diff)
downloadcuberite-9544020477c9761538fdbfd245a221b4018dc429.tar
cuberite-9544020477c9761538fdbfd245a221b4018dc429.tar.gz
cuberite-9544020477c9761538fdbfd245a221b4018dc429.tar.bz2
cuberite-9544020477c9761538fdbfd245a221b4018dc429.tar.lz
cuberite-9544020477c9761538fdbfd245a221b4018dc429.tar.xz
cuberite-9544020477c9761538fdbfd245a221b4018dc429.tar.zst
cuberite-9544020477c9761538fdbfd245a221b4018dc429.zip
Diffstat (limited to 'src')
-rw-r--r--src/Mobs/Path.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Path.cpp b/src/Mobs/Path.cpp
index 84d888bf2..60f88f525 100644
--- a/src/Mobs/Path.cpp
+++ b/src/Mobs/Path.cpp
@@ -245,7 +245,7 @@ void cPath::FinishCalculation()
}
m_Map.clear();
- m_OpenList.empty();
+ m_OpenList = std::priority_queue<cPathCell *, std::vector<cPathCell *>, compareHeuristics>{};
}