diff options
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r-- | src/depot_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index e1612c680..e1710c8ed 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -453,7 +453,7 @@ struct DepotWindow : Window { while (v != NULL && (x -= v->tcache.cached_veh_length) >= 0) v = v->Next(); /* if an articulated part was selected, find its parent */ - while (v != NULL && IsArticulatedPart(v)) v = v->Previous(); + while (v != NULL && v->IsArticulatedPart()) v = v->Previous(); d->wagon = v; @@ -860,7 +860,7 @@ struct DepotWindow : Window { loaded [w->cargo_type] += w->cargo.Count(); } - if (w->type == VEH_TRAIN && !EngineHasArticPart(w)) { + if (w->type == VEH_TRAIN && !Train::From(w)->EngineHasArticPart()) { num++; if (!whole_chain) break; } |