JACKSONVILLE, Fla.—An Allegiant Air flight from South Bend, Ind. to Orlando-Sanford International Airport had to make an emergency landing in Jacksonville Wednesday afternoon, airport officials confirmed.

Flight 749 reported smoke in the cockpit, according to Jacksonville International Airport spokesperson Michael Stewart. However, Allegiant Air spokesperson Jessica Wheeler said in an email that it was not smoke in the cockpit that caused the landing, but instead a "electrical odor."

The flight landed at 1:26 p.m. and parked at the gate at 1:35 p.m., Wheeler said. All 166 passengers deplaned and will be delayed at least 5 hours and 20 minutes while Allegiant officials work to get them a new plane to take them the rest of the way to Orlando-Sanford.

Wheeler said that the crew determined that the evacuation of the plane was not necessary - and that Allegiant officials are trying to find the passengers a new crew and plane.

No one was hurt in this incident, and all passengers have been given drinks and meal vouchers, Wheeler said.

Allegiant apologized to the passengers affected by this delay.

All passengers were given the chance to change flights in the Allegiant schedule at no extra cost and a $50 off voucher on a future Allegiant flight.