Codechange: Replaced SmallVector::Get(n) non-const with std::vector::data() + n
This commit is contained in:
@@ -2133,7 +2133,7 @@ static bool AddNearbyStation(TileIndex tile, void *user_data)
|
||||
|
||||
/* First check if there were deleted stations here */
|
||||
for (uint i = 0; i < _deleted_stations_nearby.size(); i++) {
|
||||
TileAndStation *ts = _deleted_stations_nearby.Get(i);
|
||||
TileAndStation *ts = _deleted_stations_nearby.data() + i;
|
||||
if (ts->tile == tile) {
|
||||
*_stations_nearby_list.Append() = _deleted_stations_nearby[i].station;
|
||||
_deleted_stations_nearby.Erase(ts);
|
||||
|
Reference in New Issue
Block a user