The fourth wall is broken when William Shatner tells Tom Selleck "We're like stars of our own show....". He goes on to say they're both "leading men", an obvious reference to the fact that both have been leading men on their own series; Star Trek and T.J. Hooker for William Shatner and Magnum P.I. for Tom Selleck.