summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2011-11-05 22:41:04 +0000
committermichi_cc <michi_cc@openttd.org>2011-11-05 22:41:04 +0000
commit18d1345d1c1727377eb8f2880fcd33213fa52801 (patch)
tree1edcb82bf8b5318fbc10ceda7b12919e3a14c79c /src
parent6292bc3ce42dda95957d8f95b93134a61d83f555 (diff)
downloadopenttd-18d1345d1c1727377eb8f2880fcd33213fa52801.tar.xz
(svn r23122) -Fix (23120): Silence GCC warning.
Diffstat (limited to 'src')
-rw-r--r--src/ai/api/ai_order.cpp2
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)