
    Charlotte M. Patchin, Executrix, Respondent, v. John M. Peck, Appellant.
    Under the Code, defect of parties plaintiffs can only he objected to by demurrer, when the defect appears upon the face of the complaint, or by answer, when it does not so appear.
    Unless objection is so taken, the defect is deemed to be waived.
    Exception to refusal of referee to allow an amendment of answer not well taken, though the ground of such refusal was erroneous. Grover, J.
    
      W. A. Beach, for the respondent.
    
      J. H. Reynolds, for the appellant.
   Grover, J.

The common law has been changed by the Code as to the mode of securing any advantage that may be derived from a defect of parties plaintiffs or defendants. By the latter, when the defect appears upon the face of the complaint, the objection can only be raised by demurrer to the complaint, and if the defect does not so appear, by answer ; and unless the objection is so taken it is deemed to have been waived. (Code §§ 144,146,147 and 148.) This has been repeatedly so held by this court in reported cases. This shows that the defendant could not give in evidence the interest of Whitman as partner with the plaintiff in the demand for services rendered in the Slocum suit in bar of a recovery of that demand. It is suggested, by the counsel for the defendant, that the rule ought not to be applied in this case, for the reason that the defendant could not determine from the complaint that this demand would be claimed by the plaintiff in this action. If this be so, the remedy of the defendant was, either to apply to have the complaint made more specific, or to obtain a bill of the particulars of the plaintiff’s demand. The question remains, whether the evidence was admissible to restrict the recovery to the amount of the plaintiff’s interest in the demand. The interest of the plaintiff was that of a partner, and extended to the entire demand. Payment of the whole to him would have discharged the defendant as to both partners. A recovery of the whole in this action by the plaintiff will have the like effect. Under such a state of facts it was held by this court, that, when the action was in tort by one party jointly interested with another in the subject-matter, a recovery might be had for the entire demand. (Zabriskie v. Smith, 13 N. Y. 322.) Ho reason is perceived why the same rule should not be applied to actions upon contract under the Code. It was also insisted that the plaintiff could not recover upon the notes given to him as receiver, nor for the money loaned to the defendant when the checks therefor were drawn by the plaintiff as receiver, to be charged by the banks to the plaintiff in the account kept of moneys held by him in that capacity. It is true that the money held by the plaintiff as receiver of the bank were trust funds. These funds the plaintiff had no right to loan. The money could be recovered of any one who had received it of the plaintiff with knowledge of its trust character by a successor of the plaintiff as receiver. But the defendant, who borrowed it of the plaintiff and agreed to repay it to him, cannot defend himself against an action by the plaintiff upon such contract by simply showing the trust character of the money. He must go further, and show that payment to the plaintiff in pursuance of his contract will still leave him liable to respond to some other party for the same money. While the plaintiff continued receiver, payment to him of the money borrowed would have been good not only as against the plaintiff but also against any successor of the plaintiff in the receivership. The same effect would follow upon payment of a judgment recovered by the plaintiff therefor. Hence the evidence, that the loans were made by the plaintiff in his individual capacity, and that the defendant agreed to pay in that capacity, was competent. Ho steps having been taken to remove the plaintiff or to make the defendant responsible to any other person for the sums borrowed, the defendant cannot protect himself from payment to the plaintiff by showing that he held the money as trustee, and therefore had no power to loan it. These remarks apply to the sums loaned upon the checks of the plaintiff as receiver. As to the notes made payable to the order of the plaintiff -as receiver, they were indorsed by" him as such, and thus a valid apparent title given to the holder. This title was not impeached upon the trial. I have examined the exceptions taken upon the trial to the rulings of the referee as to the admissibility of testimony, and think none of them well taken. The exception to the refusal of the referee to permit an amendment of the answer setting up the interest of Whitman is not well taken. It is true that the referee says he had no power to grant the amendment. In this I think he erred. By section 272 of the Code the referee had the same power of amendment upon trial as the court in like case. The proposed amendment was within this power. But it does not appear that the amendment would have been granted had the referee held he possessed the power. The denial is not, therefore, shown to have been erroneous. The referee, from the facts found by him from the evidence, appears to have been very liberal toward the plaintiff.

¡Nevertheless, there being no legal error in the case, the judgment must be affirmed:

Judgment affirmed, but upon other grounds than those stated in opinion.  