diff options
author | michi_cc <michi_cc@openttd.org> | 2011-11-05 22:41:04 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2011-11-05 22:41:04 +0000 |
commit | 18d1345d1c1727377eb8f2880fcd33213fa52801 (patch) | |
tree | 1edcb82bf8b5318fbc10ceda7b12919e3a14c79c /src | |
parent | 6292bc3ce42dda95957d8f95b93134a61d83f555 (diff) | |
download | openttd-18d1345d1c1727377eb8f2880fcd33213fa52801.tar.xz |
(svn r23122) -Fix (23120): Silence GCC warning.
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 a3ab21e4c..f02932ac2 100644 --- a/src/ai/api/ai_order.cpp +++ b/src/ai/api/ai_order.cpp @@ -338,7 +338,7 @@ static const Order *ResolveOrder(VehicleID vehicle_id, AIOrder::OrderPosition or if (order_position != ORDER_CURRENT && !IsGotoStationOrder(vehicle_id, order_position) && !IsGotoDepotOrder(vehicle_id, order_position)) return CT_NO_REFIT; const Order *order = ::ResolveOrder(vehicle_id, order_position); - return order->IsRefit() ? order->GetRefitCargo() : CT_NO_REFIT; + return order->IsRefit() ? order->GetRefitCargo() : (CargoID)CT_NO_REFIT; } /* static */ bool AIOrder::SetOrderJumpTo(VehicleID vehicle_id, OrderPosition order_position, OrderPosition jump_to) |