A fire in the 100-year-old steam locomotive at the Conway Scenic Railroad Sunday morning could have been tragic, but a lucky break helped avert a disaster.

The former Grand Trunk Railroad steam engine number 7470 has been running on the Conway Scenic railroad since it first opened in 1974. Built in 1921, the locomotive has undergone several restorations including a major, four-year overhaul beginning in 2015 to meet new federally mandated inspection requirements. Needless to saw it's an irreplaceable part of railroad history in New England.

The locomotive is stored in the roundhouse out of the elements where it had been for almost a year undergoing repairs. It came out under its own power for the first time on December 30. Just three days later, the can caught fire. It had been in the roundhouse undergoing repairs for almost a year. Just three days later a fire broke out in the cab of 7470 early in the morning on January 3.

The fire may have gone unnoticed for some time if it hadn't damaged a spring in the whistle valve. When the spring broke, it released the valve sound the steam whistle. Steam whistles don't usually go off on their own and that got the attention of the steam locomotive mechanic who saw the fire and called 911. If that wasn't fortunate enough, The North Conway Fire Department is right next door to the Conway Scenic and responded quickly to put the fire out.

According to a Facebook post by The Conway Scenic Railroad, there is minor damage to the cab of 7470 and minimal damage to the roundhouse, which is even older than the locomotive, having been built in 1874. Talk about luck!

As the Conway Scenic Railroad said in their Facebook post: "You could write a story: 'The Engine That Saved Itself!'" Does this story count?

Take in New Hampshire's Scenery While Pedaling On Railroad Tracks

Redditors Share How to Upset Mainers in One Sentence and They're Completely Accurate

LOOK: See how much gasoline cost the year you started driving

To find out more about how has the price of gas changed throughout the years, Stacker ran the numbers on the cost of a gallon of gasoline for each of the last 84 years. Using data from the Bureau of Labor Statistics (released in April 2020), we analyzed the average price for a gallon of unleaded regular gasoline from 1976 to 2020 along with the Consumer Price Index (CPI) for unleaded regular gasoline from 1937 to 1976, including the absolute and inflation-adjusted prices for each year.

Read on to explore the cost of gas over time and rediscover just how much a gallon was when you first started driving.