diff options
author | yexo <yexo@openttd.org> | 2010-01-26 23:03:47 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-01-26 23:03:47 +0000 |
commit | 7f998ce80d48e6f34be5d81b00c5384264e90ab3 (patch) | |
tree | f4f6d2f33b0df7b61916a7e7955a6d7c150e9d81 /src/waypoint_cmd.cpp | |
parent | 0bc1b736d7b0c9ed1796731834cf7ad14cdcdaa0 (diff) | |
download | openttd-7f998ce80d48e6f34be5d81b00c5384264e90ab3.tar.xz |
(svn r18921) -Codechange: make the preconditions for Get/Set CustomStationSpecIndex a bit more strict
Diffstat (limited to 'src/waypoint_cmd.cpp')
-rw-r--r-- | src/waypoint_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/waypoint_cmd.cpp b/src/waypoint_cmd.cpp index e2d6486aa..64c5f5f4e 100644 --- a/src/waypoint_cmd.cpp +++ b/src/waypoint_cmd.cpp @@ -306,7 +306,7 @@ CommandCost CmdBuildRailWaypoint(TileIndex start_tile, DoCommandFlag flags, uint for (int i = 0; i < count; i++) { TileIndex tile = start_tile + i * offset; - byte old_specindex = IsTileType(tile, MP_STATION) ? GetCustomStationSpecIndex(tile) : 0; + byte old_specindex = HasStationTileRail(tile) ? GetCustomStationSpecIndex(tile) : 0; bool reserved = IsTileType(tile, MP_RAILWAY) ? HasBit(GetRailReservationTrackBits(tile), AxisToTrack(axis)) : HasStationReservation(tile); |