summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
diff options
context:
space:
mode:
authorfonsinchen <fonsinchen@openttd.org>2014-06-14 13:35:39 +0000
committerfonsinchen <fonsinchen@openttd.org>2014-06-14 13:35:39 +0000
commit957f5ca11758d556763881d04ced39cd34c470c1 (patch)
tree03a1c5061a2d4466526f39b637a0967333a5591f /src/station_cmd.cpp
parente8e5cdde034dcf5c3874790b5a9cd67ad300ee9d (diff)
downloadopenttd-957f5ca11758d556763881d04ced39cd34c470c1.tar.xz
(svn r26646) -Fix [FS#6041]: Save locations instead of distances in link graphs to reduce size.
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r--src/station_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index 99bb4225e..91d65ad87 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -649,7 +649,7 @@ static void UpdateStationSignCoord(BaseStation *st)
for (CargoID c = 0; c < NUM_CARGO; ++c) {
LinkGraphID lg = full_station->goods[c].link_graph;
if (!LinkGraph::IsValidID(lg)) continue;
- LinkGraph::Get(lg)->UpdateDistances(full_station->goods[c].node, st->xy);
+ (*LinkGraph::Get(lg))[full_station->goods[c].node].UpdateLocation(st->xy);
}
}