From d9985c333178da2f965933a64242c47541e9145e Mon Sep 17 00:00:00 2001 From: fonsinchen Date: Mon, 17 Jun 2013 20:37:07 +0000 Subject: (svn r25422) -Fix: properly initialize base capacity for paths --- src/linkgraph/linkgraphjob.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linkgraph/linkgraphjob.cpp b/src/linkgraph/linkgraphjob.cpp index fc94d49cc..2feaa8b92 100644 --- a/src/linkgraph/linkgraphjob.cpp +++ b/src/linkgraph/linkgraphjob.cpp @@ -177,7 +177,7 @@ uint Path::AddFlow(uint new_flow, LinkGraphJob &job, uint max_saturation) */ Path::Path(NodeID n, bool source) : distance(source ? 0 : UINT_MAX), - capacity(0), + capacity(source ? UINT_MAX : 0), free_capacity(source ? INT_MAX : INT_MIN), flow(0), node(n), origin(source ? n : INVALID_NODE), num_children(0), parent(NULL) -- cgit v1.2.3-70-g09d2