CODY, Wyo. (AP) — A man who wounded three people by firing live rounds instead of blanks during a Wyoming gunfighter show has been sentenced to 360 days behind bars.

Steve Winsor, 52,  pleaded guilty Sept. 20 to five misdemeanor counts of reckless endangerment. He was given credit for 168 days served.

The shooting happened in July 2016 at the height of tourist season in Cody, a city named for the wild West showman Buffalo Bill Cody. Bullets struck one spectator in the legs and another in the chest as he held his 3-year-old daughter. The girl was wounded in the arm.

Winsor told investigators live rounds got mixed up with his blanks.