summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 397c13a99..2222c0bc9 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -2373,7 +2373,7 @@ void GetVehicleSet(VehicleSet &set, Vehicle *v, uint8 num_vehicles)
u = u->GetFirstEnginePart();
while (u->index != v->index) {
set.Include(u->index);
- u = u->GetNextArticPart();
+ u = u->GetNextArticulatedPart();
}
}