At least someone's a good parent!

Denise Richards was awarded temporary custody Thursday of Charlie Sheen and Brooke Mueller's twins after child services determined that the boys were in danger in their mother's care due to her alleged drug use, Radar reports.

The Anger Management star's ex-wife has cared for Bob and Max multiple times before. Back in December 2012, the actress stepped in when Mueller entered rehab for the 19th time.

Although you might think Brooke would resent Denise for taking her boys, sources claim she's actually grateful for the generous offer!

"Brooke is really not in good shape at all. She is not opposed to Denise having the kids - that's her first choice," a source tells Us.

We're happy Bob and Max are in good hands now!