mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r8538) -Fix
GetRoadStopByTile() cannot return NULL. Remove therefore unnecessary check
This commit is contained in:
parent
8baecb778d
commit
e0a46a08e9
|
@ -1080,8 +1080,8 @@ static int RoadFindPathToDest(Vehicle* v, TileIndex tile, DiagDirection enterdir
|
||||||
bitmask = 0;
|
bitmask = 0;
|
||||||
} else {
|
} else {
|
||||||
// proper station type, check if there is free loading bay
|
// proper station type, check if there is free loading bay
|
||||||
const RoadStop *rs = GetRoadStopByTile(tile, rstype);
|
if (!_patches.roadveh_queue &&
|
||||||
if (rs == NULL || (!_patches.roadveh_queue && GB(rs->status, 0, 2) == 0)) {
|
GB(GetRoadStopByTile(tile, rstype)->status, 0, 2) == 0) {
|
||||||
// station is full and RV queuing is off
|
// station is full and RV queuing is off
|
||||||
bitmask = 0;
|
bitmask = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue