From ed5ced71c852387aec030acc19ad096e55bcbd82 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 21 Jul 2009 11:20:34 +0000 Subject: (svn r16897) -Codechange: use the 'generic' station spec to station allocation for waypoints too --- src/newgrf_station.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/newgrf_station.cpp') diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp index f34012359..54c68d13d 100644 --- a/src/newgrf_station.cpp +++ b/src/newgrf_station.cpp @@ -954,7 +954,7 @@ const StationSpec *GetStationSpec(TileIndex t) if (IsRailWaypointTile(t)) { const BaseStation *st = BaseStation::GetByTile(t); - return st->num_specs != 0 ? st->speclist[0].spec : NULL; + return st->num_specs != 0 ? st->speclist[1].spec : NULL; } return NULL; -- cgit v1.2.3-54-g00ecf