Notwithstanding the provisions of this chapter, no person can recover a greater amount in damages for the breach of an obligation than the person could have gained by the full performance thereof on both sides, except in the cases wherein exemplary damages or penal damages are authorized, and in the case specified in section 36-21-13.
N.D.C.C. § 32-03-36