Story highlightsCowell made a crack about her wedding night.

The former Spice Girl threw her drink at her fellow “America’s Got Talent” judge Tuesday after he made a joke about her wedding night.

The incident occurred during the live show Tuesday night as magician Demian Aditya attempted an escape trick involving a wooden box, fire and steel stakes.

The trick didn’t come off, leaving host Tyra Banks to explain that t had been a technical issue that was not Aditya’s fault.

“I kind of imagine this would be like Mel B’s wedding night,” Cowell joked.

Brown didn’t take kindly to the crack and tossed the contents of her cup at Cowell even before he got the punchline out.

The show’s official Twitter account tweeted that Brown had left the building.

It’s not the first time Brown has doused Cowell.

“I told him he was an a**hole and that was it and he goes, ‘Oh, whatever,'” Brown told ET. Brown is currently going through a contentious divorce with her husband of 10 years, Stephen Belafonte.