summaryrefslogtreecommitdiff
path: root/src/pathfind.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pathfind.h')
-rw-r--r--src/pathfind.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathfind.h b/src/pathfind.h
index 0a006190f..7785192b2 100644
--- a/src/pathfind.h
+++ b/src/pathfind.h
@@ -88,7 +88,7 @@ void NewTrainPathfind(TileIndex tile, TileIndex dest, RailTypes railtypes, DiagD
*/
static inline TileIndex CalcClosestStationTile(StationID station, TileIndex tile)
{
- const Station *st = GetStation(station);
+ const Station *st = Station::Get(station);
/* If the rail station is (temporarily) not present, use the station sign to drive near the station */
if (st->train_tile == INVALID_TILE) return st->xy;