Fix the path filtering loop exit condition.

This commit is contained in:
JoelKatz
2013-11-03 17:20:10 -08:00
parent 2210dbac94
commit 0ae7bcff52

View File

@@ -355,7 +355,7 @@ STPathSet Pathfinder::filterPaths(int iMaxPaths, STPath& extraPath)
{
path_LQ_t& lqt = vMap[i];
if ((iPathsLeft != 1) || (lqt.get<2> () >= remaining))
if ((iPathsLeft > 1) || (lqt.get<2> () >= remaining))
{
// last path must fill
--iPathsLeft;