Codechange: Replaced SmallVector::Get(n) non-const with std::vector::data() + n

This commit is contained in:
Henry Wilson
2018-09-25 21:01:56 +01:00
committed by PeterN
parent bc7dcaffca
commit aa7ca7fe64
9 changed files with 10 additions and 23 deletions

View File

@@ -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);