Linkgraph: Replace a std::list with a std::vector.

This commit is contained in:
Jonathan G Rennison
2017-02-08 20:38:05 +00:00
parent c86a027e88
commit 117b56caeb
4 changed files with 30 additions and 25 deletions

View File

@@ -303,7 +303,7 @@ uint Path::AddFlow(uint new_flow, LinkGraphJob &job, uint max_saturation)
}
new_flow = this->parent->AddFlow(new_flow, job, max_saturation);
if (this->flow == 0 && new_flow > 0) {
job[this->parent->node].Paths().push_front(this);
job[this->parent->node].Paths().push_back(this);
}
edge.AddFlow(new_flow);
}