# HG changeset patch # User frosch # Date 2011-10-25 19:21:36 # Node ID 83de1fe020702b98e417f3a63ef70fc78bb7b98d # Parent d57b54ccc403e52feeba60900ba1d1995fa9256e (svn r23057) -Fix: [NoAI] AIOrder::GetOrderCount() did not hide implicit orders. diff --git a/src/ai/api/ai_order.cpp b/src/ai/api/ai_order.cpp --- a/src/ai/api/ai_order.cpp +++ b/src/ai/api/ai_order.cpp @@ -191,7 +191,7 @@ static const Order *ResolveOrder(Vehicle /* 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)