In revising a written instrument, the court may inquire what the instrument was intended to mean and what were intended to be its legal consequences, and it is not confined to an inquiry as to what the language of the instrument was intended to be.
N.D.C.C. § 32-04-19