From 0ae7bcff5250e8a91320193a55ac15978537ed74 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Sun, 3 Nov 2013 17:20:10 -0800 Subject: [PATCH] Fix the path filtering loop exit condition. --- src/ripple_app/paths/Pathfinder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ripple_app/paths/Pathfinder.cpp b/src/ripple_app/paths/Pathfinder.cpp index 3eb414f3d..7291083e4 100644 --- a/src/ripple_app/paths/Pathfinder.cpp +++ b/src/ripple_app/paths/Pathfinder.cpp @@ -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;