diff --git a/src/linkgraph/mcf.cpp b/src/linkgraph/mcf.cpp index 483da91289..f6b85f82da 100644 --- a/src/linkgraph/mcf.cpp +++ b/src/linkgraph/mcf.cpp @@ -253,7 +253,7 @@ bool CapacityAnnotation::IsBetter(const CapacityAnnotation *base, uint cap, int free_cap, uint dist) const { int min_cap = Path::GetCapacityRatio(min(base->free_capacity, free_cap), min(base->capacity, cap)); - int this_cap = this->GetCapacityRatio(); + int this_cap = this->GetAnnotation(); if (min_cap == this_cap) { /* If the capacities are the same and the other path isn't disconnected * choose the shorter path. */