diff src/depot_gui.cpp @ 7548:c0e537dd249b draft

(svn r11068) -Codechange: remove Vehicle::HasFront as all vehicles have the Vehicle::first pointer correctly set.
author rubidium <rubidium@openttd.org>
date Sun, 09 Sep 2007 11:23:49 +0000 (2007-09-09)
parents 797ff0b0e0a5
children e6f32e659811
line wrap: on
line diff
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -474,7 +474,7 @@
 
 	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;