(svn r8538) -Fix

GetRoadStopByTile() cannot return NULL. Remove therefore unnecessary check
This commit is contained in:
tron 2007-02-02 19:07:20 +00:00
parent 8baecb778d
commit e0a46a08e9
1 changed files with 2 additions and 2 deletions

View File

@ -1080,8 +1080,8 @@ static int RoadFindPathToDest(Vehicle* v, TileIndex tile, DiagDirection enterdir
bitmask = 0;
} else {
// proper station type, check if there is free loading bay
const RoadStop *rs = GetRoadStopByTile(tile, rstype);
if (rs == NULL || (!_patches.roadveh_queue && GB(rs->status, 0, 2) == 0)) {
if (!_patches.roadveh_queue &&
GB(GetRoadStopByTile(tile, rstype)->status, 0, 2) == 0) {
// station is full and RV queuing is off
bitmask = 0;
}