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 | f75591a5a0ead65dc6947846255c669ef1eedc80 (patch) | |
tree | 71cd9e54f6feda3ffae63337dc9dfa1a32c8fa88 /src | |
parent | 80daf62d9503fe3ebf23fa4315609f039e200364 (diff) | |
download | openttd-f75591a5a0ead65dc6947846255c669ef1eedc80.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 { |