Carla Gugino stars in the new disaster movie "San Andreas," but her experience with a real-life earthquake 20 years ago taught her a lesson about sleeping in the nude.

Gugino went to sleep naked the night a magnitude-6.7 earthquake hit Northridge, Calif. in 1994. The quake caused immense damage around Los Angeles and was felt as far away as Las Vegas.

The event caused her to think twice before climbing into bed in just her "birthday suit."

"I was in the Northridge quake in 1994, living in the Pacific Palisades with my boyfriend at the time," the 43-year-old actress told People. "I woke up from a dead sleep. And I was sleeping naked, just in my birthday suit."

Needing to find safety, Gugino almost fled the house naked.

"I got up and I could not find any clothes – and the ground was shaking, things were falling," she said. "I was just going to run out of that house, just naked as the day I was born. But I finally found my robe on the ground. I put that robe on, and I have not, to this date, slept naked in California ever again!"

The "Wayward Pines" star plays the estranged wife of Dwayne Johnson's special ops firefighter. The couple must make the treacherous journey from Los Angeles to San Francisco to save their teenage daughter, played by Alexandra Daddario.

"San Andreas" opened at No. 1 this weekend, raking in $53 million.