diff options
author | rubidium <rubidium@openttd.org> | 2009-07-16 20:29:08 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-16 20:29:08 +0000 |
commit | 665fa7f9c170774f6a640ecf381f714b50b6b174 (patch) | |
tree | c50cc3aa827d9d7f6d3db036b1b2cee952bd3cb6 /src/rail_cmd.cpp | |
parent | dea1144bcb52b6c5f2c985395b2775cedcbff5ce (diff) | |
download | openttd-665fa7f9c170774f6a640ecf381f714b50b6b174.tar.xz |
(svn r16851) -Codechange: use StationSpecList in waypoint too
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r-- | src/rail_cmd.cpp | 3 |
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 */ |