(svn r16851) -Codechange: use StationSpecList in waypoint too

This commit is contained in:
rubidium
2009-07-16 20:29:08 +00:00
parent dea1144bcb
commit 665fa7f9c1
5 changed files with 34 additions and 38 deletions

View File

@@ -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 */