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 791822eda..04b71056e 100644
--- a/src/waypoint.cpp
+++ b/src/waypoint.cpp
@@ -49,7 +49,7 @@ void WaypointsDailyLoop()
*/
Station *ComposeWaypointStation(TileIndex tile)
{
- Waypoint *wp = GetWaypointByTile(tile);
+ Waypoint *wp = Waypoint::GetByTile(tile);
/* instead of 'static Station stat' use byte array to avoid Station's destructor call upon exit. As
* a side effect, the station is not constructed now. */