# HG changeset patch # User tron # Date 1170443240 0 # Node ID 1b36775cf19403116877fcb8d4a84225ba804f7b # Parent a33f764569a6c8e623ca89458c4f2467300df0db (svn r8538) -Fix GetRoadStopByTile() cannot return NULL. Remove therefore unnecessary check diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp --- 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; }