Months before her sudden death at the age of 36, Hayden Panettiere opened up about one of the darkest periods of her life.

In her memoir, This Is Me: A Reckoning, the actress recalled a doctor giving her a terrifying warning about her drinking. If she didn't stop, she could be dead within five years.

Panettiere died Sunday at 36, and her cause of death has not been publicly disclosed. There is yet to be any indication that the doctor's warning was related to her death. The revelation came as Panettiere was looking back on years of alcohol addiction recovery and the difficult decisions she made while trying to regain control of her life.