summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-02 19:45:46 +0000
committerrubidium <rubidium@openttd.org>2009-01-02 19:45:46 +0000
commit0c352ede7a5f0e961cbb9c2d1f07db8fb3a2303f (patch)
tree0e4a2c5387cd6f2e22afa3dfa64b58cffe833cd8 /src
parent3000a62f53689ccdfd1fb2a3badf12be3c77e479 (diff)
downloadopenttd-0c352ede7a5f0e961cbb9c2d1f07db8fb3a2303f.tar.xz
(svn r14783) -Fix (r12661): don't add vehicles with "go to nearest depot" to the vehicle list of the depot with index 0.
Diffstat (limited to 'src')
-rw-r--r--src/vehiclelist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehiclelist.cpp b/src/vehiclelist.cpp
index 6579397a7..af3da1b12 100644
--- a/src/vehiclelist.cpp
+++ b/src/vehiclelist.cpp
@@ -116,7 +116,7 @@ void GenerateVehicleSortList(VehicleList *list, VehicleType type, Owner owner, u
const Order *order;
FOR_VEHICLE_ORDERS(v, order) {
- if (order->IsType(OT_GOTO_DEPOT) && order->GetDestination() == index) {
+ if (order->IsType(OT_GOTO_DEPOT) && !(order->GetDepotActionType() & ODATFB_NEAREST_DEPOT) && order->GetDestination() == index) {
*list->Append() = v;
break;
}