Skip to content

Commit 0ae7bcf

Browse files
committed
Fix the path filtering loop exit condition.
1 parent 2210dba commit 0ae7bcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ripple_app/paths/Pathfinder.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ STPathSet Pathfinder::filterPaths(int iMaxPaths, STPath& extraPath)
355355
{
356356
path_LQ_t& lqt = vMap[i];
357357

358-
if ((iPathsLeft != 1) || (lqt.get<2> () >= remaining))
358+
if ((iPathsLeft > 1) || (lqt.get<2> () >= remaining))
359359
{
360360
// last path must fill
361361
--iPathsLeft;

0 commit comments

Comments
 (0)