A police body camera captured the dramatic rescue of an 18-month-old girl who had been trapped in a car for up to 14 hours last week.

The girl’s mother, 25-year-old Lynn Jennifer Groesbeck, was involved in a single-car crash with her 18-month-old Lily strapped in a car seat in the back.

The car went off of the road and flipped into the Spanish Fork River. Lynn was killed in the crash. However, it was the freezing temperatures that may have saved her daughter Lily, CNN reported.

Even though the child was trapped and upside down, her body remained in the seat and above the frigid water. Doctors say that such low temperatures are dangerous, but would be even more so if the baby were wet.

Dry cold temperatures are more survivable than wet cold temperatures.

Ironically, the cold might have actually helped Lily survive, said Dr. Barbara Walsh, with the University of Massachusetts Medical School.

“She’s going to have a lower heart rate. She’s going to have a lower metabolism. She’s going to need less sugar,” Walsh said. “It’s almost like the body is sort of knowing that it needs to shut down to protect itself.”