mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-06 22:37:22 +00:00
(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;
|
||||
} 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user