Codechange: Replaced SmallVector::Include() with include()

This commit is contained in:
Henry Wilson
2019-02-20 21:35:41 +00:00
committed by PeterN
parent 2bc2de9034
commit 297fd3dda3
14 changed files with 33 additions and 28 deletions

View File

@@ -2899,10 +2899,10 @@ void GetVehicleSet(VehicleSet &set, Vehicle *v, uint8 num_vehicles)
for (; u != NULL && num_vehicles > 0; num_vehicles--) {
do {
/* Include current vehicle in the selection. */
set.Include(u->index);
include(set, u->index);
/* If the vehicle is multiheaded, add the other part too. */
if (u->IsMultiheaded()) set.Include(u->other_multiheaded_part->index);
if (u->IsMultiheaded()) include(set, u->other_multiheaded_part->index);
u = u->Next();
} while (u != NULL && u->IsArticulatedPart());