Mercurial > hg > openttd
changeset 18222:72c74cf825d8 draft
(svn r23057) -Fix: [NoAI] AIOrder::GetOrderCount() did not hide implicit orders.
author | frosch <frosch@openttd.org> |
---|---|
date | Tue, 25 Oct 2011 19:21:36 +0000 |
parents | fb84ba2c94a2 |
children | 54f84e1cd35c |
files | src/ai/api/ai_order.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ai/api/ai_order.cpp +++ b/src/ai/api/ai_order.cpp @@ -191,7 +191,7 @@ /* 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)