(svn r11524) -Fix [FS#1485]: assertion when tram reversed at a station.

This commit is contained in:
rubidium 2007-11-25 19:45:09 +00:00
parent bdc7fd2d76
commit 77b6a2674e
1 changed files with 1 additions and 1 deletions

View File

@ -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