When damages are claimed for withholding the property recovered, upon which permanent improvements have been made by a defendant, or those under whom he claims, holding under color of title adversely to the claim of the plaintiff, in good faith, the value of such improvements must be allowed as a set-off against such damages.
Idaho Code § 6-404