summaryrefslogtreecommitdiffstats
path: root/src/Mobs
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2015-05-06 18:26:59 +0200
committerworktycho <work.tycho@gmail.com>2015-05-06 18:26:59 +0200
commit7771091099fad43025c63694ccf9362cce384aa8 (patch)
tree4b8a267b9f867ce73b26ac3306ed877e117439b2 /src/Mobs
parentMerge pull request #1946 from SafwatHalaby/lean (diff)
downloadcuberite-7771091099fad43025c63694ccf9362cce384aa8.tar
cuberite-7771091099fad43025c63694ccf9362cce384aa8.tar.gz
cuberite-7771091099fad43025c63694ccf9362cce384aa8.tar.bz2
cuberite-7771091099fad43025c63694ccf9362cce384aa8.tar.lz
cuberite-7771091099fad43025c63694ccf9362cce384aa8.tar.xz
cuberite-7771091099fad43025c63694ccf9362cce384aa8.tar.zst
cuberite-7771091099fad43025c63694ccf9362cce384aa8.zip
Diffstat (limited to '')
-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>{};
}