Permalink
Browse files

Merge pull request #1952 from mc-server/coverity-fix

Actually empty the open list
  • Loading branch information...
bearbin committed May 6, 2015
2 parents 68614e7 + 7771091 commit 9544020477c9761538fdbfd245a221b4018dc429
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Mobs/Path.cpp
View
@@ -245,7 +245,7 @@ void cPath::FinishCalculation()
}
m_Map.clear();
m_OpenList.empty();
m_OpenList = std::priority_queue<cPathCell *, std::vector<cPathCell *>, compareHeuristics>{};
}

0 comments on commit 9544020

Please sign in to comment.