diff options
author | rubidium <rubidium@openttd.org> | 2008-07-25 13:20:50 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-07-25 13:20:50 +0000 |
commit | 64833bb84f0f0306464ebf3a4ad6049f56d2a977 (patch) | |
tree | 71cd9e54f6feda3ffae63337dc9dfa1a32c8fa88 /src | |
parent | 3a706b0f2d6775d72d36f430d406f5892db042e4 (diff) | |
download | openttd-64833bb84f0f0306464ebf3a4ad6049f56d2a977.tar.xz |
(svn r13824) -Fix (r13822): also make sure a tile is a road stop tile before trying to get information about the roadstop...
Diffstat (limited to 'src')
-rw-r--r-- | src/road_cmd.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index be2e61339..8af34a470 100644 --- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -570,6 +570,7 @@ CommandCost CmdBuildRoad(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) } case MP_STATION: + if (!IsRoadStop(tile)) goto do_clear; if (IsDriveThroughStopTile(tile)) { if (pieces & ~AxisToRoadBits(DiagDirToAxis(GetRoadStopDir(tile)))) goto do_clear; } else { |