From 6a73dc2e1652f2b75ee8a09bb880c26847889d33 Mon Sep 17 00:00:00 2001 From: mimo Date: Tue, 8 Dec 2015 22:58:04 +0000 Subject: [PATCH] fix multiple (useless) insertion in grid update of hierarchical pathfinder This was SVN commit r17409. --- source/simulation2/helpers/HierarchicalPathfinder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/simulation2/helpers/HierarchicalPathfinder.cpp b/source/simulation2/helpers/HierarchicalPathfinder.cpp index abdf9b3983..aff9fc2254 100644 --- a/source/simulation2/helpers/HierarchicalPathfinder.cpp +++ b/source/simulation2/helpers/HierarchicalPathfinder.cpp @@ -415,11 +415,11 @@ void HierarchicalPathfinder::Update(Grid* grid, const Grid& dir if (std::find(processedChunks.begin(), processedChunks.end(), chunkID) == processedChunks.end()) { + processedChunks.push_back(chunkID); for (const std::pair& passClassMask : m_PassClassMasks) { pass_class_t passClass = passClassMask.second; Chunk& a = m_Chunks[passClass].at(chunkID.second*m_ChunksW + chunkID.first); - processedChunks.push_back(chunkID); a.InitRegions(chunkID.first, chunkID.second, grid, passClass); } }