summaryrefslogtreecommitdiff
path: root/src/depot_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-09-09 11:23:49 +0000
committerrubidium <rubidium@openttd.org>2007-09-09 11:23:49 +0000
commit40b871410b557aa8fdf6c2ea1d872a2563c922ab (patch)
treef20482e13f3272992a0ec242e6105684bc4d19b0 /src/depot_gui.cpp
parentefea7622acb6dbf5b4a75be3e0b0c6d016e5feb1 (diff)
downloadopenttd-40b871410b557aa8fdf6c2ea1d872a2563c922ab.tar.xz
(svn r11068) -Codechange: remove Vehicle::HasFront as all vehicles have the Vehicle::first pointer correctly set.
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r--src/depot_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp
index 318ee3f3d..9c0e87da1 100644
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -474,7 +474,7 @@ static void HandleCloneVehClick(const Vehicle *v, const Window *w)
if (v == NULL) return;
- if (v->HasFront() && !v->IsPrimaryVehicle()) {
+ if (!v->IsPrimaryVehicle()) {
v = v->First();
/* Do nothing when clicking on a train in depot with no loc attached */
if (v->type == VEH_TRAIN && !IsFrontEngine(v)) return;