Mercurial > hg > openttd
diff src/roadveh_cmd.cpp @ 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 | deb7a3ce0bca |
children | 2ab303172d09 |
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; }