summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/roadveh_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index dc37bdf92..6be3e106d 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -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;
}