summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-07-25 13:20:50 +0000
committerrubidium <rubidium@openttd.org>2008-07-25 13:20:50 +0000
commitf75591a5a0ead65dc6947846255c669ef1eedc80 (patch)
tree71cd9e54f6feda3ffae63337dc9dfa1a32c8fa88
parent80daf62d9503fe3ebf23fa4315609f039e200364 (diff)
downloadopenttd-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...
-rw-r--r--src/road_cmd.cpp1
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 {