diff options
author | frosch <frosch@openttd.org> | 2009-07-20 19:58:33 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-07-20 19:58:33 +0000 |
commit | d5a4c893656f61950595c057c7643f4082228d47 (patch) | |
tree | ae65d69eb2c0ef06cd95925420d1e3fb1c11c382 /src/depot_gui.cpp | |
parent | e3752f3ef82278a34fe5cce5515e240589465c77 (diff) | |
download | openttd-d5a4c893656f61950595c057c7643f4082228d47.tar.xz |
(svn r16894) -Codechange: Add [Specialised]Vehicle::Last().
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r-- | src/depot_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index a311ebd75..48a9fd8ce 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -151,7 +151,7 @@ static void TrainDepotMoveVehicle(const Vehicle *wagon, VehicleID sel, const Veh if (v == wagon) return; if (wagon == NULL) { - if (head != NULL) wagon = GetLastVehicleInChain(head); + if (head != NULL) wagon = head->Last(); } else { wagon = wagon->Previous(); if (wagon == NULL) return; |