Nothing in this title contained is to be construed so as to deprive either party of the right to take advantage of any action or decision of the court in a criminal action or proceeding which affects any other material or substantial right of either party, whether before or after the trial, or on such trial.
N.D.C.C. § 29-23-10