File diff r25715:e21936138af3 → r25716:ab9b7d7dd0ba
src/autoreplace_cmd.cpp
Show inline comments
 
@@ -207,6 +207,7 @@ static int GetIncompatibleRefitOrderIdFo
 
	const Vehicle *u = (v->type == VEH_TRAIN) ? v->First() : v;
 

	
 
	const OrderList *orders = u->orders.list;
 
	if (orders == nullptr) return -1;
 
	for (VehicleOrderID i = 0; i < orders->GetNumOrders(); i++) {
 
		o = orders->GetOrderAt(i);
 
		if (!o->IsRefit()) continue;