If Captain Dobbin expected to get any personal comfort and satisfaction from having one more view of Amelia before the regiment marched away, his selfishness was punished just as such odious egotism deserved to be. 
But if he expected to get any personal comfort from having one more view of Amelia before marching away, his selfishness was punished. 