summaryrefslogtreecommitdiff
path: root/src/ai/api
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2011-11-08 15:53:32 +0000
committeryexo <yexo@openttd.org>2011-11-08 15:53:32 +0000
commit7a3e362763d248c852663c49178f5f690b9782fc (patch)
tree4f4da9e5078ebf577e65e8c240478a011f18d156 /src/ai/api
parentbaf11cf401bd58646b1ade9fc3ac1353a7c1e925 (diff)
downloadopenttd-7a3e362763d248c852663c49178f5f690b9782fc.tar.xz
(svn r23135) -Fix (r23133): always compile before commit
Diffstat (limited to 'src/ai/api')
-rw-r--r--src/ai/api/ai_order.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/api/ai_order.cpp b/src/ai/api/ai_order.cpp
index a73bd04ad..f45f276a4 100644
--- a/src/ai/api/ai_order.cpp
+++ b/src/ai/api/ai_order.cpp
@@ -130,7 +130,7 @@ static const int AIOrderPositionToRealOrderPosition(VehicleID vehicle_id, AIOrde
if (order_position == ORDER_CURRENT) return false;
if (!IsValidVehicleOrder(vehicle_id, order_position)) return false;
- const Order *order = ::Vehicle::Get(vehicle_id)->GetOrder(AIOrderPositionToRealOrderPosition(order_position));
+ const Order *order = ::Vehicle::Get(vehicle_id)->GetOrder(AIOrderPositionToRealOrderPosition(vehicle_id, order_position));
return order->GetType() == OT_CONDITIONAL;
}
@@ -428,7 +428,7 @@ static const int AIOrderPositionToRealOrderPosition(VehicleID vehicle_id, AIOrde
EnforcePrecondition(false, AICargo::IsValidCargo(refit_cargo) || refit_cargo == CT_AUTO_REFIT || refit_cargo == CT_NO_REFIT);
uint32 p1 = vehicle_id;
- uint32 p2 = refit_cargo | AIOrderPositionToRealOrderPosition(AIOrder::ResolveOrderPosition(vehicle_id, order_position)) << 16;
+ uint32 p2 = refit_cargo | AIOrderPositionToRealOrderPosition(vehicle_id, AIOrder::ResolveOrderPosition(vehicle_id, order_position)) << 16;
return AIObject::DoCommand(0, p1, p2, CMD_ORDER_REFIT);
}