Permalink
Browse files

Merge pull request #1278 from TheCycoONE/path_fix

Fix write to empty vector
  • Loading branch information...
Alberth289346 committed Nov 10, 2017
2 parents fa0ae53 + db396f5 commit 7d930a038aa20744f726480ffac5848f5a810c3d
Showing with 5 additions and 0 deletions.
  1. +5 −0 CorsixTH/Src/th_pathfind.cpp
@@ -551,6 +551,11 @@ node_t* THPathfinder::_openHeapPop()
node_t *pResult = m_openHeap[0];
node_t *pNode = m_openHeap.back();
m_openHeap.pop_back();
if (m_openHeap.empty()) {
return pResult;
}
m_openHeap[0] = pNode;
int i = 0;
int min = 0;

0 comments on commit 7d930a0

Please sign in to comment.