Mischa Barton should be thankful she has a friend like Nicole Richie, who is a retired wild child, pretty much what Barton is going through right now.

RadarOnline.com says Richie has stepped in to help Barton as she recuperates from the meltdown that landed her in the hospital under involuntary psychiatric hold earlier this month.

"Mischa is doing great -- thanks to Nicole," a source said. "She stepped in and talked to her about making changes in her life... basically doing a 360."

After all, Richie has some helpful advice about changing her life: After she was arrested in 2006 for DUI - where she admitted to having taken vicodin and smoking pot - Richie made some changes of her own, and is now expecting her second child with boyfriend Joel Madden.

"Mischa and Nicole have been friends for years, but when Nic had Harlow, she became more domestic," the source said. "Mischa isn't even smoking anymore, thanks to Nicole. Nicole told Mischa that she has to straighten up because she has a lot riding on this nwe show (The Beautiful Life)."

Maybe Nicole Richie's solution is to have babies.

[via RadarOnline]