From e0a46a08e97412c22eea71d77983ca2fdf695320 Mon Sep 17 00:00:00 2001 From: tron Date: Fri, 2 Feb 2007 19:07:20 +0000 Subject: (svn r8538) -Fix GetRoadStopByTile() cannot return NULL. Remove therefore unnecessary check --- src/roadveh_cmd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2