(2)If a person sentenced by a court-martial under this Act or punished under section 82 or section 86 is afterwards tried and convicted by a criminal court for the same offence, or on the same facts, that court shall, in awarding punishment have regard to the punishment he may already have undergone for the said offence.