diff --git a/src/ripple_app/shamap/SHAMapSync.cpp b/src/ripple_app/shamap/SHAMapSync.cpp index 9850e0b35..a466a365d 100644 --- a/src/ripple_app/shamap/SHAMapSync.cpp +++ b/src/ripple_app/shamap/SHAMapSync.cpp @@ -73,7 +73,7 @@ void SHAMap::visitLeavesInternal (std::function& fu else { // If there are no more children, don't push this node - while ((pos != 15) && (child->isEmptyBranch (pos))) + while ((pos != 15) && (node->isEmptyBranch (pos + 1))) ++pos; if (pos != 15)