summaryrefslogtreecommitdiff
path: root/src/waypoint.cpp
diff options
context:
space:
mode:
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 c39a83273..f35628492 100644
--- a/src/waypoint.cpp
+++ b/src/waypoint.cpp
@@ -56,7 +56,7 @@ Station *ComposeWaypointStation(TileIndex tile)
static Station &stat = *(Station*)stat_raw;
stat.train_tile = stat.xy = wp->xy;
- stat.town = GetTown(wp->town_index);
+ stat.town = Town::Get(wp->town_index);
stat.build_date = wp->build_date;
return &stat;