diff options
author | frosch <frosch@openttd.org> | 2011-11-08 17:42:34 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-11-08 17:42:34 +0000 |
commit | 6701a2af4508f78f6c3fa94e932f40f3f0fdfc1a (patch) | |
tree | 57e8225e92e142d86188d26a30e700d356f79b55 /src/ai | |
parent | 4d2ca18ee1f321a7cb3550494d52cca9fedad9e0 (diff) | |
download | openttd-6701a2af4508f78f6c3fa94e932f40f3f0fdfc1a.tar.xz |
(svn r23162) -Fix (r23133): Silence gcc warning.
Diffstat (limited to 'src/ai')
-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 f45f276a4..a905aedb8 100644 --- a/src/ai/api/ai_order.cpp +++ b/src/ai/api/ai_order.cpp @@ -82,7 +82,7 @@ static const Order *ResolveOrder(VehicleID vehicle_id, AIOrder::OrderPosition or * @param order_position The OrderPosition to convert. * @return An OpenTTD-internal index for the same order. */ -static const int AIOrderPositionToRealOrderPosition(VehicleID vehicle_id, AIOrder::OrderPosition order_position) +static int AIOrderPositionToRealOrderPosition(VehicleID vehicle_id, AIOrder::OrderPosition order_position) { const Vehicle *v = ::Vehicle::Get(vehicle_id); if (order_position == v->GetNumManualOrders()) return v->GetNumOrders(); |