(svn r16894) -Codechange: Add [Specialised]Vehicle::Last().
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user