Past Continuous backshifts to Past Perfect Continuous. 'Last night' -> 'the previous night'.
Previous Question
He said, "Honesty is the best policy."
Next Question
He said to me, "Why are you crying?"