From 7771091099fad43025c63694ccf9362cce384aa8 Mon Sep 17 00:00:00 2001 From: worktycho Date: Wed, 6 May 2015 17:26:59 +0100 Subject: Actually empty the open list --- src/Mobs/Path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, compareHeuristics>{}; } -- cgit v1.2.3