diff options
author | Alexander Harkness <me@bearbin.net> | 2015-05-06 21:41:17 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2015-05-06 21:41:17 +0200 |
commit | 9544020477c9761538fdbfd245a221b4018dc429 (patch) | |
tree | 02993814a6ecb05b4bd879442e8816e3a5bf8acf /src | |
parent | Added info about case-sensitivity of FindAndDoWithPlayer (diff) | |
parent | Actually empty the open list (diff) | |
download | cuberite-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.cpp | 2 |
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>{}; } |