(svn r16897) -Codechange: use the 'generic' station spec to station allocation for waypoints too

This commit is contained in:
rubidium
2009-07-21 11:20:34 +00:00
parent 43eda3dfbf
commit ed5ced71c8
6 changed files with 11 additions and 33 deletions

View File

@@ -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;