From 40b871410b557aa8fdf6c2ea1d872a2563c922ab Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 9 Sep 2007 11:23:49 +0000 Subject: (svn r11068) -Codechange: remove Vehicle::HasFront as all vehicles have the Vehicle::first pointer correctly set. --- src/depot_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/depot_gui.cpp') 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; -- cgit v1.2.3-70-g09d2