# HG changeset patch # User michi_cc # Date 2011-11-05 22:41:04 # Node ID 3f1bc1818b4950075d26fb1404aac3d441df76fd # Parent 076cb61a5372b34a442fb07a084bf83b70c5b932 (svn r23122) -Fix (23120): Silence GCC warning. 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 @@ -338,7 +338,7 @@ static const Order *ResolveOrder(Vehicle 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)