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 8aea0298c..2d1cf1b41 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -488,10 +488,10 @@ static void HandleCloneVehClick(const Vehicle *v, const Window *w) if (v == NULL) return; - if (v->type == VEH_TRAIN && !IsFrontEngine(v)) { + if (v->HasFront() && !v->IsPrimaryVehicle()) { v = GetFirstVehicleInChain(v); /* Do nothing when clicking on a train in depot with no loc attached */ - if (!IsFrontEngine(v)) return; + if (v->type == VEH_TRAIN && !IsFrontEngine(v)) return; } switch (v->type) { |