The two officers were patrolling with horses