summaryrefslogtreecommitdiff
path: root/src/linkgraph
diff options
context:
space:
mode:
authorfonsinchen <fonsinchen@openttd.org>2014-09-21 16:19:52 +0000
committerfonsinchen <fonsinchen@openttd.org>2014-09-21 16:19:52 +0000
commit9fdb88962fed69472a88861cf08d9559e8dff2a4 (patch)
treea0337c7ce519fb69e5458bc48c48f5fdc01396fa /src/linkgraph
parentf56b8ba69eb967a1b9c8f8ab89dd70eeb00a0f72 (diff)
downloadopenttd-9fdb88962fed69472a88861cf08d9559e8dff2a4.tar.xz
(svn r26891) -Codechange: Add methods to retrieve flows from a FlowStatMap
Diffstat (limited to 'src/linkgraph')
-rw-r--r--src/linkgraph/linkgraph_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linkgraph/linkgraph_gui.cpp b/src/linkgraph/linkgraph_gui.cpp
index 579bf9c46..1fe34fe79 100644
--- a/src/linkgraph/linkgraph_gui.cpp
+++ b/src/linkgraph/linkgraph_gui.cpp
@@ -152,7 +152,7 @@ void LinkGraphOverlay::AddLinks(const Station *from, const Station *to)
ConstEdge edge = lg[ge.node][to->goods[c].node];
if (edge.Capacity() > 0) {
this->AddStats(lg.Monthly(edge.Capacity()), lg.Monthly(edge.Usage()),
- ge.GetSumFlowVia(to->index), from->owner == OWNER_NONE || to->owner == OWNER_NONE,
+ ge.flows.GetFlowVia(to->index), from->owner == OWNER_NONE || to->owner == OWNER_NONE,
this->cached_links[from->index][to->index]);
}
}