src/ai/api/ai_vehicle.cpp
branchnoai
changeset 11057 188a9ca6d8de
parent 11029 776c7cc8bda5
child 11168 3842648184cd
equal deleted inserted replaced
11056:d91b79ffff9c 11057:188a9ca6d8de
   274 		if (v->cargo_type == cargo) amount += v->cargo.Count();
   274 		if (v->cargo_type == cargo) amount += v->cargo.Count();
   275 	}
   275 	}
   276 
   276 
   277 	return amount;
   277 	return amount;
   278 }
   278 }
       
   279 
       
   280 /* static */ GroupID AIVehicle::GetGroupID(VehicleID vehicle_id)
       
   281 {
       
   282 	if (!IsValidVehicle(vehicle_id)) return ::INVALID_GROUP;
       
   283 
       
   284 	return ::GetVehicle(vehicle_id)->group_id;
       
   285 }