summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
diff options
context:
space:
mode:
authorfonsinchen <fonsinchen@openttd.org>2013-10-22 18:34:10 +0000
committerfonsinchen <fonsinchen@openttd.org>2013-10-22 18:34:10 +0000
commit6e1cc8092696eb73a1932d63c561abd7246eee8e (patch)
tree01407638a8a368de0291732d87e662730e879ac0 /src/station_cmd.cpp
parente0f547e694978adc34f3a04e860663f908c486b5 (diff)
downloadopenttd-6e1cc8092696eb73a1932d63c561abd7246eee8e.tar.xz
(svn r25903) -Codechange: Refactor RefreshNextHopsStats into an own class LinkRefresher.
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r--src/station_cmd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index 9542ea131..423907a8f 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -51,6 +51,7 @@
#include "newgrf_house.h"
#include "company_gui.h"
#include "linkgraph/linkgraph_base.h"
+#include "linkgraph/refresh.h"
#include "widgets/station_widget.h"
#include "table/strings.h"
@@ -3446,7 +3447,7 @@ void DeleteStaleLinks(Station *from)
* - We could try to figure out if we've seen a consist with the same cargo on the
* same list already and if the consist can actually carry the cargo we're looking
* for. With conditional and refit orders this is not quite trivial, though. */
- v->RefreshNextHopsStats();
+ LinkRefresher::Run(v);
if (edge.LastUpdate() == _date) updated = true;
}
if (updated) break;