(CNN) -- A passenger plane made an emergency landing at an airport outside Chicago Wednesday after lightning struck the aircraft, officials said.
The plane had a cracked windshield when it landed at Chicago Rockford International Airport around 10:30 a.m., said Jarek Beem, a spokesman for flight operator ExpressJet Airlines.
The aircraft was carrying 50 passengers on its flight from Madison, Wisconsin, to Chicago. None of the passengers were injured, said Franz Olson, deputy director of operations and facilities at the airport.
"I was just reading, and there was a very loud crash noise and a flash," passenger Nancy McCartan told CNN affiliate WREX.
Minutes later, a flight attendant announced the plane had been struck by lightning, she said, and the pilot said he was making an emergency landing because of the cracked windshield.
"He really assured us that everything was OK," she said.
CNN's Kara Devlin contributed to this report.