diff options
author | rubidium <rubidium@openttd.org> | 2007-09-09 11:23:49 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-09-09 11:23:49 +0000 |
commit | 643ffb270c53cc97c331673ff5fcf074170b9f95 (patch) | |
tree | f20482e13f3272992a0ec242e6105684bc4d19b0 /src/order_gui.cpp | |
parent | 1f1ce4ac5b2051a516fbb26a73b1b1fb50cbfb0c (diff) | |
download | openttd-643ffb270c53cc97c331673ff5fcf074170b9f95.tar.xz |
(svn r11068) -Codechange: remove Vehicle::HasFront as all vehicles have the Vehicle::first pointer correctly set.
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r-- | src/order_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp index 0bf98f240..2dd5714a8 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -355,7 +355,7 @@ static bool HandleOrderVehClick(const Vehicle *v, const Vehicle *u, Window *w) { if (u->type != v->type) return false; - if (u->HasFront() && !u->IsPrimaryVehicle()) { + if (!u->IsPrimaryVehicle()) { u = u->First(); if (!u->IsPrimaryVehicle()) return false; } |