summaryrefslogtreecommitdiff
path: root/src/waypoint.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-16 23:02:39 +0000
committerrubidium <rubidium@openttd.org>2009-07-16 23:02:39 +0000
commit9933df9d89a72bd3b8b6cc23cb1170de3c5a8c4d (patch)
treedc217c4d89a73a6b692f8e0322cc9934deb04f4e /src/waypoint.cpp
parenta007d609afec5e40d2aef362aca90d3a53580c8d (diff)
downloadopenttd-9933df9d89a72bd3b8b6cc23cb1170de3c5a8c4d.tar.xz
(svn r16855) -Codechange: remove unused 'conversion' stuff from the waypoint struct and make it more similar to Station.
Diffstat (limited to 'src/waypoint.cpp')
-rw-r--r--src/waypoint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/waypoint.cpp b/src/waypoint.cpp
index d970bb14c..e245627e5 100644
--- a/src/waypoint.cpp
+++ b/src/waypoint.cpp
@@ -57,7 +57,7 @@ Station *ComposeWaypointStation(TileIndex tile)
static Station &stat = *(Station*)stat_raw;
stat.train_tile = stat.xy = wp->xy;
- stat.town = Town::Get(wp->town_index);
+ stat.town = wp->town;
stat.build_date = wp->build_date;
return &stat;