Oklahoma State softball came from behind Thursday night to avoid an opening-night upset at the Women’s College World Series, defeating Arizona 4-2.

The Cowgirls trailed Arizona 2-1 heading into the sixth inning, with Oklahoma State’s offense cold.

Junior outfielder Karli Petty, however, turned the game around just in time for the Cowgirls, blasting a three-run home run to dead center field to secure a 4-2 win over Arizona.

Petty’s game-winning homer marks just her fifth home run of the season. This one came in front of a record crowd of 12,320 at USA Softball Hall of Fame Stadium in Oklahoma City — and one girl in the stands snagged the ball out of the air as it sailed into the bleachers.

“It’s really nice to come back and play somewhere that’s really familiar, and it’s just even better to come back with over 12,000 fans,” Petty said following the match. “It’s really exciting to see how much this place has grown from when I was little growing up. It’s an amazing feeling to be in this moment in all aspects of my life.”

Up next: No. 7 Oklahoma State will face No. 14-seed Florida at 7 p.m. ET Saturday on ESPN.