diff options
author | frosch <frosch@openttd.org> | 2011-10-25 19:21:36 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-10-25 19:21:36 +0000 |
commit | 8b8d4e32b8832580dd31755c4cc1f08497d61b44 (patch) | |
tree | 1b545c7634a787396003531ea7b64ee5695b7d3f /src | |
parent | c3427b0e560116edf477e1d030b7145ea8503466 (diff) | |
download | openttd-8b8d4e32b8832580dd31755c4cc1f08497d61b44.tar.xz |
(svn r23057) -Fix: [NoAI] AIOrder::GetOrderCount() did not hide implicit orders.
Diffstat (limited to 'src')
-rw-r--r-- | src/ai/api/ai_order.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_order.cpp b/src/ai/api/ai_order.cpp index 6c8e69f9b..9fa8eca6a 100644 --- a/src/ai/api/ai_order.cpp +++ b/src/ai/api/ai_order.cpp @@ -191,7 +191,7 @@ static const Order *ResolveOrder(VehicleID vehicle_id, AIOrder::OrderPosition or /* static */ int32 AIOrder::GetOrderCount(VehicleID vehicle_id) { - return AIVehicle::IsValidVehicle(vehicle_id) ? ::Vehicle::Get(vehicle_id)->GetNumOrders() : -1; + return AIVehicle::IsValidVehicle(vehicle_id) ? ::Vehicle::Get(vehicle_id)->GetNumManualOrders() : -1; } /* static */ TileIndex AIOrder::GetOrderDestination(VehicleID vehicle_id, OrderPosition order_position) |