summaryrefslogtreecommitdiff
path: root/src/newgrf_station.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-21 11:20:34 +0000
committerrubidium <rubidium@openttd.org>2009-07-21 11:20:34 +0000
commited5ced71c852387aec030acc19ad096e55bcbd82 (patch)
tree087c8bed10e5e62eeed8052eaf781f1ec60c544c /src/newgrf_station.cpp
parent43eda3dfbf45a8f5060aaca3da9b8cad59a1aad8 (diff)
downloadopenttd-ed5ced71c852387aec030acc19ad096e55bcbd82.tar.xz
(svn r16897) -Codechange: use the 'generic' station spec to station allocation for waypoints too
Diffstat (limited to 'src/newgrf_station.cpp')
-rw-r--r--src/newgrf_station.cpp2
1 files changed, 1 insertions, 1 deletions
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;