Fix: Depot listing for trains arriving backwards with an articulated tail (#15547)

This commit is contained in:
Jonathan G Rennison
2026-05-04 19:19:04 +01:00
committed by GitHub
parent 792f6d99a3
commit a4e1865cd7
+1 -2
View File
@@ -50,9 +50,8 @@ void BuildDepotVehicleList(VehicleType type, TileIndex tile, VehicleList *engine
if (type == VehicleType::Train) {
const Train *t = Train::From(v);
if (t->IsArticulatedPart()) continue;
if (wagons != nullptr && t->First()->IsFreeWagon()) {
if (individual_wagons || t->IsFreeWagon()) wagons->push_back(t);
if (!t->IsArticulatedPart() && (individual_wagons || t->IsFreeWagon())) wagons->push_back(t);
continue;
}
}