summaryrefslogtreecommitdiff
path: root/src/depot_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r--src/depot_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp
index b057278b1..6d32fd761 100644
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -797,7 +797,7 @@ struct DepotWindow : Window {
loaded [w->cargo_type] += w->cargo.Count();
}
- if (w->type == VEH_TRAIN && !Train::From(w)->HasArticulatedPart()) {
+ if (w->type == VEH_TRAIN && !w->HasArticulatedPart()) {
num++;
if (!whole_chain) break;
}
@@ -911,7 +911,7 @@ struct DepotWindow : Window {
} else if (gdvp.wagon == NULL || gdvp.wagon->index != sel) {
this->vehicle_over = INVALID_VEHICLE;
TrainDepotMoveVehicle(gdvp.wagon, sel, gdvp.head);
- } else if (gdvp.head != NULL && Train::From(gdvp.head)->IsFrontEngine()) {
+ } else if (gdvp.head != NULL && gdvp.head->IsFrontEngine()) {
ShowVehicleViewWindow(gdvp.head);
}
}