Walden will fear that his fling with Ms. McMartin will interfere with his ability to adopt Louis in the next all-new episode of "Two and a Half Men."

Last week, Alan put Louis' adoption in jeopardy after he hooked up with his ex, Lyndsey, and then broke up with Ms. McMartin, their social worker. Although Alan insisted that things weren't serious between him and Ms. McMartin, she didn't take it lightly when he dumped her. As a result, she showed up in the middle of the night for an inspection and made note of several safety issues in order to get back at Alan. She also stalked him and discovered that he was dating his ex, notes Entertainment Weekly.

In the end, Ms. McMartin ended up sleeping with Walden, who then appeared to be filled with regret.

In the next episode, "Boompa Loved His Hookers," Walden will hesitate to break up with Ms. McMartin in fear that it could hurt his chances of officially adopting his foster son.

According to CarterMatt, the official synopsis reads as follows:

"Walden fears if he breaks up with Ms. McMartin, it will jeopardize his adoption of Louis. Also, Alan hesitates when Lyndsey asks him to move in with her."

Executive producer Chuck Lorre also dropped hints about the fast-approaching series finale, revealing that fans can expect to see several characters from the show's 12 seasons.

"There's going to be an awful lot of folks on the finale," said the series creator to TVLine. However, when asked if original "Two and a Half Men" star Charlie Sheen would be featured in the finale, Lorre said, "We're going to have a finale that you'll be very, very pleased with. And that's all I'm going to say."

"Two and a Half Men" Season 12, Episode 13, "Boompa Loved His Hookers," airs on Thursday, Feb. 5, at 8 p.m. ET on CBS.

Watch a promo clip below.