The Sea Devils: Episode Two - S9-E10
Continuity mistake: In episodes 2 and 3, watch the clock on the wall in the Master's quarters. When the Master pulls a gun on the Doctor and the Doctor quickly pulls the door shut, the clock shows ten minutes to three. In the next episode, after the swordfight is over and the Doctor is being led out by the guards, the clock now shows approximately eight minutes after twelve.
Answer: TARDISes are generally available for properly authorised use on Gallifrey; they're not usually assigned to a particular Timelord on a long-term basis. The Doctor stole his when he left his homeworld.
Tailkinker ★