diff options
author | rubidium <rubidium@openttd.org> | 2007-11-25 19:45:09 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-11-25 19:45:09 +0000 |
commit | 825fc97077d819f101a6013944f6308d6879fd08 (patch) | |
tree | 756b4f771832cb26ce17dc77dbb53529223edc28 /src | |
parent | e36dba227b3ef5414757282661a8108d3a2bc9f6 (diff) | |
download | openttd-825fc97077d819f101a6013944f6308d6879fd08.tar.xz |
(svn r11524) -Fix [FS#1485]: assertion when tram reversed at a station.
Diffstat (limited to 'src')
-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 0da918426..6e747460a 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -1689,7 +1689,7 @@ again: uint turn_around_start_frame = RVC_TURN_AROUND_START_FRAME; RoadBits tram; - if (v->u.road.roadtype == ROADTYPE_TRAM && CountBits(tram = GetRoadBits(v->tile, ROADTYPE_TRAM)) == 1) { + if (v->u.road.roadtype == ROADTYPE_TRAM && CountBits(tram = GetAnyRoadBits(v->tile, ROADTYPE_TRAM)) == 1) { /* * The tram is turning around with one tram 'roadbit'. This means that * it is using the 'big' corner 'drive data'. However, to support the |