The action was originally brought against the Hew York Kerosene Oil Engine Company. Subsequently George'W. McAdám, the present defendant, was substituted as a. party defendant, and the plaintiff served an amended summons and complaint. The amended complaint alleged that on or about the 1st' day of May, 1902, for the purpose of securing to the plaintiff a claim of $725 against a corporation styled the- “ Riotti Company,” certain chattels *873were, by the duly authorized agents of said company, delivered to and pledged with the plaintiff ; that the claim of the said company remains unpaid ; that on- the 10th day of May, 1904, and while the said chattels were in the possession of this plaintiff under said pledge, the said chattels were, without the knowledge or consent of the plaintiff, taken wrongfully from its possession by one William G-. MeCrea; that the said chattels were in the possession of the defendant, who detained the same wrongfully from the plaintiff. And the relief demanded is that the plaintiff recover possession of the chattels, or" the sum of $725, the value thereof, with damages for the detention thereof. .The answer denied that the chattels were deposited with the plaintiff, as alleged in the complaint, or that the plaintiff had a claim against the Biotti Company, or that the defendant detained the chattels from the plaintiff wrongfully, or that the same were taken from the possession of the plaintiff; it alleged that the chattels did not belong to .the Biotti Company ; that the Biotti Company was not indebted to the plaintiff, and that there was an action pending between plaintiff and the Biotti Company, and that these chattels were delivered to defendant for a good and valuable consideration by one William Gr. MeCrea, who was then in the lawful possession of the same.
The action was referred to a referee to hear and determine. The referee found that on the 3d day of September, 1901, MeCrea, being in -possession of the goods and. chattels mentioned in the complaint, delivered them to the plaintiff as security for an indebtedness which the plaintiff then claimed was owing from the Biotti Company, to recover which the plaintiff had theretofore brought an action against the Biotti Company in the Supreme Court of this State, which action was then pending and undetermined; that in said action the defendant, the Biotti Company, had set up a counterclaim against the plaintiff in excess of the plaintiff’s claim; that upon the delivery of said chattels to the plaintiff by the said MeCrea, the plaintiff hired premises at Newburgh, N. T., and placed the said chattels therein and paid for the rent of said premises during the period from September, 1901, to May, 1904, in all the sum of $480 ; that in May, 1904, MeCrea removed said goods and chattels from the premises were they had been placed by the plaintiff, and for value received delivered the same to the defendant George W. *874McAdarh; that after this action was begun and shortly before the answer of the defendant was interposed, and on or about the lltli "day of October,- 1904, the plaintiff and the Eiotti Company duly made and executed ah agreement iñ writing, whereby it was stipn-' lated and agreed that the alleged indebtedness of the Eiotti Company should be adjusted at the sum of $5,000; that all securities held by the plaintiff for such alleged indebtedness should be sold and the net proceeds thereof, as well as the net proceeds of secn•rities theretofore sold, applied toward the'payment of said sum of $5,000, and that any surplus of such proceeds over the sum Of $5„000 should be paid to the Eiotti Company^and that then in any. event mutual releases should be exchanged.; that such settlement and agreement- were máde without the knowledge of McCrea and without the knowledge and consent of the defendant, and knowledge thereof did not come to the defendant, until the facts came out upon the trial in this action; that the said agreement of settlement was put in' evidence by the plaintiff on .the trial of. this action without objection, and, as a conclusion of law, that McCrea, by-delivering the said góods and chattels to the plaintiff as security for the debt of the Eiotti Company to the plaintiff, became a surety for the debt of the Eiotti Company, the principal debtor; that the execution of the agreement of settlement by and between the plaintiff and the Eiotti Company and their dealings substantially varied the contract, of. said McCrea without his assent, and operated as a discharge of his obligation and released the said goods and chattels from the pledge thereof made by him to the plaintiff, and that the: defendant MoAdam, having acquired for value tlm right, title-.and interest of McCrea to said goods'and chattels, became entitled to the possession thereof free from any lien in favor of the plaintiff, and that the defendant MoAdam was entitled to judgment of a dismissal of the complaint, and judgment was directed for the defendant, for the possession of said -goods and .chattels. ~
' Upon the trial the president of the plaintiff testified that in the years 1900,1901 and 1902 the plaintiff was doing considerable work for the Eiotti Company,, and that McCrea owned a majority of the stock of that'company and was a director thereof; that there was due and owing in September, 1901, from the Eiotti Company to the plaintiff about $10,000 or $11,000; that in September, 1901, the *875witness and McCrea had numerous conversations regarding the Riotti Company’s indebtedness to the plaintiff, and that the amount then standing on the plaintiff’s books was something like $18,000 ; that McCrea said that he had sixteen or seventeen launches of the Riotti Company for which he had a bill of sale; that they were his, and that he would turn them over to the plaintiff as security for the indebtedness of the Riotti Company, and at the same time he assumed $7,000 or $8,000 of indebtedness of the Riotti Company and gave his notes for it; that the next day the plaintiff took possession of these launches and stored them' in a warehouse at New-burgh, where they remained from September, 1901, to May or June, 1904, when they were removed from the warehouse by McCrea, without the consent of the plaintiff. It was subsequently admitted by the defendant that McCrea took these boats from the warehouse in the early part of May, 1904, and that they were subsequently in the possession of the defendant. The notes that McCrea gave to the plaintiff, amounting to $7,300, on account of the indebtedness of the Riotti Company to the plaintiff, were subsequently paid by McCrea..
On behalf of the defendant, it was proved that these chattels were delivered by the Riotti Company to McCrea and one Street, as security for moneys advanced by them to the Riotti Company, and a formal bill of sale was executed by that company to McCrea, and that under that bill of sale Street and McCrea took possession of the property. It also appeared that the plaintiff had commenced an action against the Riotti Company for a breach of a contract and for work done for it; that the Riotti Company answered setting up a counterclaim for damages against the plaintiff for its failure to perform its. contract with" the Riotti Company and claimed the sum of $35,000 damages, a sum largely in excess of that claimed by the plaintiff against the Riotti Company ; but McCrea subsequently paid a large sum of money on account of the Riotti Company, and Street also advanced $3,000 for its account. The plaintiff then- offered in evidence an agreement. between it and the Riotti Company, which recited the claims of the two companies against each other and that the Riotti Company had transferred in trust to McCrea and Street certain property of the said company; that with the knowledge, consent and approval of said company and Street, the said McCrea *876delivered to and pledged to the plaintiff the property transferred to them; that an action was pending in which the plaintiff in this action was plaintiff and the Eiotti Company defendant, to recover the claims of the plaintiff against the Eiotti Company, in which action the company had set up counterclaims for damages; that for the purpose of settling all disputes between the plaintiff and the company, it was agreed that the plaintiff’s claims as against the Eiotti'Company, and also all claims of the Eiotti Company as against the plaintiff as set up in the counterclaims, were compromised and settled,at the sum of $5,000;.that in order to pay said claim, the plaintiff should credit thereon the net amount of all moneys received from the sales of the portions of the said security, theretofore sold, and should sell either at public or private sale the remainder of said security then on hand and apply the net proceeds of said sales upon said claim, rendering the. surplus, if any, to said company; that if after the sale .of all of said security any deficiency should remain, then the plaintiff. agreed to release and .cancel the same, and the parties were to execute and deliver to each other general releases. This agreement, dated October 11, 1904, after McCrea had taken possession of the property, was without the knowledge or consent of either McCrea or Street, and neither Street nor McCrea had any notice of this agreement until it was produced upon' the trial of this action. When. this agreement was produced in evidence by plaintiff, counsel for the defendant moved to dismiss the complaint and for judgment in the defendant’s favor, upon'the ground that ,as the deposit of this security by McCrea was to. secure the claim of the plaintiff against the Eiotti Company, which was disputed by the Eiotti Company, the execution of. the agreement without..the knowledge or consent of the surety discharged him and the prop-. . erty that he had deposited as security for the claim of the plaintiff against .the Eiotti Company. There was further evidence that McCrea transferred these boats to the defendant for a valuable consideration, which consisted of advances made by the defendant to McCrea or for his account, and that these boats were delivered to the defendant by McCrea with the understanding that the defendant was .to take them for $1,000 and give McCrea credit for that amount.
I think. it is apparent that McCrea had a special interest in this *877property which -he had pledged to the plaintiff as security for advances which he and Street had made to the Riotti Company. The evidence is undisputed that McCrea and Street advanced to the company an amount largely in excess of the value of these launches, and that the launches were then formally transferred to McCrea by the Riotti Company as security for these advances. It is also clear that McCrea pledged this property, not on behalf of the Riotti Company, but as a pledge of his individual interest or property in them to secure any indebtedness that existed in favor of the plaintiff against the Riotti Company. Occupying that relation, an agreement was made between the Riotti Company and the. plaintiff, by which the company acknowledged an indebtedness to the plaintiff and agreed that the • plaintiff should sell McCrea’s property to pay that indebtedness. This . agreement clearly discharged the surety and relieved the property that the surety had deposited with the plaintiff from anyjien for the indebtedness of the" Riotti Company. That any change in the contract between the debtor and the creditor releases the surety, and any property that the surety has pledged to secure the indebtedness, is settled. (Burnap v. Nat. Bank of Potsdam, 96 N. Y. 125 ; Tradesmen's Nat. Bank v. Nat. Surety Co., 169 id. 563 ; Jones v. Bacon, 145 id. 446.)
The plaintiff, however, claimed before the referee and now insists that this defense was not available, as it had not been pleaded by the defendant. The fact, however, was proved by the plaintiff as a part of the plaintiff’s case. When presenting the evidence to establish its cause of action, it proved a fact which destroyed its cause of action and established that it was not entitled to the possession of the property for which the action was brought. It has many times been held that' evidence of a defense offered by the defendant and received without objection justified the dismissal of the complaint, although that defense was not pleaded; and certainly the rule is not different when the plaintiff itself has proved á defense to the cause of action sought to be enforced. If the defendant had offered this agreement between the plaintiff and' the Riotti Company in evidence, and it had been received' without objection, it is clear that the plaintiff could not afterwards insist that it was not available because' not pleaded ; but here the plaintiff *878having offered it as a part of the proof to establish a cause of action, and which when proved established a defense; it would seem to follow that'the'plaintiff cannot recover.
I think, therefore, the judgment was right and that it should be affirmed, with costs. '
Patterson and Clarke, JJ., concurred ; O’Brien, P. J., and Laughlin, J., dissented.