# HG changeset patch # User tron # Date 1170443240 0 # Node ID 2f84fef87679e3c080f07b495eda77c968de60c6 # Parent 9c9a106fbd99953cc5dee35b14ba2c324087f90e (svn r8538) -Fix GetRoadStopByTile() cannot return NULL. Remove therefore unnecessary check diff -r 9c9a106fbd99 -r 2f84fef87679 src/roadveh_cmd.cpp --- a/src/roadveh_cmd.cpp Fri Feb 02 18:48:37 2007 +0000 +++ b/src/roadveh_cmd.cpp Fri Feb 02 19:07:20 2007 +0000 @@ -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; }