diff options
Diffstat (limited to 'train_cmd.c')
-rw-r--r-- | train_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/train_cmd.c b/train_cmd.c index 3d55f2484..08afbd391 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -2079,7 +2079,7 @@ static int GetDirectionToVehicle(Vehicle *v, int x, int y) /* Check if the vehicle is compatible with the specified tile */ static bool CheckCompatibleRail(const Vehicle *v, TileIndex tile) { - switch (TileType(tile)) { + switch (GetTileType(tile)) { case MP_RAILWAY: case MP_STATION: // normal tracks, jump to owner check |