diff options
author | smatz <smatz@openttd.org> | 2008-10-10 22:50:31 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-10-10 22:50:31 +0000 |
commit | b0ff0245e8c00ffc5dea721b2702332fb6f4dbb6 (patch) | |
tree | 7f6b8b5e388d4c15590c683e35d61fe177ba5b81 /src/roadveh_cmd.cpp | |
parent | 5adf4e11e66f00100257af2119c45ecb4072374b (diff) | |
download | openttd-b0ff0245e8c00ffc5dea721b2702332fb6f4dbb6.tar.xz |
(svn r14458) -Fix [FS#2341](r14368): crash when there was a tram dead end after a station/tunnel/bridge (frosch123 and Rubidium)
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r-- | src/roadveh_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index 091ad876e..14681fc32 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -1487,7 +1487,7 @@ again: * going to cause the tram to split up. * - Or the front of the tram can drive over the next tile. */ - } else if (!IsRoadVehFront(v) || !CanBuildTramTrackOnTile(v->owner, tile, needed) || ((~needed & GetRoadBits(v->tile, ROADTYPE_TRAM)) == ROAD_NONE)) { + } else if (!IsRoadVehFront(v) || !CanBuildTramTrackOnTile(v->owner, tile, needed) || ((~needed & GetAnyRoadBits(v->tile, ROADTYPE_TRAM, false)) == ROAD_NONE)) { /* * Taking the 'small' corner for trams only happens when: * - We are not the from vehicle of an articulated tram. |