Kate Walsh is getting some Dick Casablancas.
Ryan Hansen has joined the cast of Walsh’s new NBC comedy Bad Judge as a series regular, TVLine has learned.
RELATED Fall TV Preview: Photos and Video of 50+ New Shows
The Veronica Mars vet will play Gary, a psychiatrist who has an on-again, off-again relationship with Walsh’s hard-living, sexually unapologetic judge, Rebecca.
Hansen — who is set to reprise his role of Dick C in the CW’s upcoming web-based Veronica Mars spin-off — replaces Bones‘ Mather Zickel, who portrayed Gary in the pilot but left the project for creative reasons.
Bad Judge premieres Thursday, Oct. 2 on NBC.