changeset 5912:1b36775cf194 draft

(svn r8538) -Fix GetRoadStopByTile() cannot return NULL. Remove therefore unnecessary check
author tron <tron@openttd.org>
date Fri, 02 Feb 2007 19:07:20 +0000
parents a33f764569a6
children ba26846fe4ff
files src/roadveh_cmd.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -1080,8 +1080,8 @@
 				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;
 				}