summaryrefslogtreecommitdiff
path: root/src/rail_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r--src/rail_cmd.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp
index cc2d089cd..42e3a6d78 100644
--- a/src/rail_cmd.cpp
+++ b/src/rail_cmd.cpp
@@ -1938,8 +1938,7 @@ static void DrawTile_Track(TileInfo *ti)
}
} else {
/* look for customization */
- byte stat_id = GetWaypointByTile(ti->tile)->stat_id;
- const StationSpec *statspec = GetCustomStationSpec(STAT_CLASS_WAYP, stat_id);
+ const StationSpec *statspec = GetWaypointByTile(ti->tile)->spec.spec;
if (statspec != NULL) {
/* emulate station tile - open with building */