delivered the opinion of the Court.
*174 This suit wаs instituted by respondent to remove cloud from her title to certain property caused by the filing by petitioner of a mechanic’s lien asserting a claim for architect’s fee due him for drawing up- plans and specifications for a proposed restaurant and private club. Respondent admitted the contract between her and petitioner for services as an architect, but sоught to cancel his claimed lien on the grounds, first, that the plans and specifications which he prepared were incomplete, and, second, that the building which was called for would cost greatly in excess of the $60,000.00 to $70,000.00 limit agreed upon. Petitioner filed a cross-action to foreclose his lien and recover his fee. After the evidence had been presented, respondent filed а motion for an instructed verdict that petitioner take nothing by his cross-action and that the claimed mechanic’s lien be can-celled. The grounds of her motion were that petitioner neither рleaded nor proved that he was a licensed architect in good standing at the time the original agreement was entered into or at the time the work was performed; that petitioner cоuld not recover on quantum meruit because the evidence showed an express contract, and that the undisputed evidence showed the plans and specifications to be so incomplete that they could not be used in the construction of the building contemplated within the limits .set by respondent. Petitioner then sought to file a trial amendment alleging that he was a licensed architect in good stаnding at all times mentioned in his pleadings, but the trial court refused to allow him to amend.
Respondent’s motion for an instructed verdict was granted, and judgment rendered cancelling petitioner’s lien and removing it аs a cloud on her title. Neither the order directing the jury to return a verdict in favor of respondent nor the judgment is based specifically on one or another of the grounds asserted in respondent’s mоtion, the judgment reciting that “under the evidence introduced and the pleadings of the parties” petitioner failed to establish a basis or ground to support a judgment in his favor.
The Court of Civil Appeals аffirmed the judgment of the trial court upon the ground that it was incumbent upon petitioner to plead and prove that he was a licensed architect in good standing at the time he entered into the contract with respondent and at the time he performed the work for her; and that the trial court did not abuse its discretion in refusing to allow petitioner to amend his pleadings. The court did not affirm the judgment оn the ground that the evidence would not support a finding that the plans and specifications were too incomplete to amount- to
*175
a performance, but on that ground the court held that there was evidence from which a jury might conclude that there was substantial performance. It affirmed the trial court’s judgment on the ground that an instructed verdict was properly granted because of thе failure of the pleadings and proof that petitioner was a licensed architect in good standing.
The application for writ of error contains three points. Point 1 is as follows:
“The Court of Civil Appeals erred in holding that it was incumbent upon Petitioner to plead and prove that he was a duly registered and licensed architect in good standing at the time the plans were prepared and at the time of the trial.”
Point 2 is as follows:
“The Court of Civil Appeals erred in sustaining the action of the trial court in refusing to allow Petitioner leave to file a trial amendment.”
The third point presents in different language the same basic question as the first point.
We sustain the first point, and that renders the second point immaterial.
Had the petitioner not filed a cross-action for his fee, and the suit had been only one by respondent to quiet title, clearly the burden of proof would have been upon her to establish that the adverse claim was a cloud upon her title; but, since petitioner filed a cross-aсtion asserting the validity of his lien and seeking a foreclosure thereof, a judgment denying him recovery against respondent and a foreclosure of his claimed lien would have the effect of remоving any cloud from plaintiff’s title. The question of whether petitioner’s pleading and proof were deficient seems, therefore, clearly presented for decision.
In Clark v. Eads,
*176 Article 249a, Y.A.T.S., is a comрrehensive statute regulating the practice of architecture. It does not contain any provision that one bringing an action for the collection of compensation-for the performance of services as an architect must allege and prove that he was a licensed architect at the time the alleged services were rendered. It is significant that the statute rеgulating real estate dealers, Article 6573a, Y.A.T.S., Sec. 19, contains that express provision.
Rule 94, Texas Rules of Civil Procedure, places the obligation upon the defendant to plead illegality affirmatively as a defense. That rule should not be construed to limit illegality as an affirmative defense to contracts which are prohibited by law, but to include contracts rendered unenforceable because of some failure to comply with the law. The question narrowed down, then, is whether, when recovery is sought for services rendered as an architect, his compliance or failure tо comply with the statute regulating the practice of architects determines whether such services were legally rendered. If it is a question of illegality of contract, clearly Rule 94 governs. In M.M.M., Inc. v. Mitchell,
Rule 94 serves a most useful аnd important purpose in our practice. If followed uniformly, it will make for more certainty in cases like the instant one. We can perceive of no reason why this case should not fall within the tеrms of that rule, and accordingly we hold that if petitioner was not in fact an architect in good standing when he made the contract and performed the services alleged, then his contract was illegal and respondent should have affirmatively pleaded its illegality. In principle that conclusion finds support in Reid v. Associated Employers Lloyds,
In Swift v. Kelly,
It is respondent’s position that the judgmеnt of the trial court should be sustained on the ground that no evidence was introduced from which a jury might conclude that there was any substantial performance of the contract. This point was overruled by the Court of Civil Appeals. It held: “Here the ultimate issue was whether the plans and specifications were substantially complete. There was a dispute in the evidence and such explanation of alleged deficiencies, and expressions of professional opinion with regard to this, that we think a fact issue was raised.” The evidence strongly indicates to our minds that the plans and speсifications were deficient, especially in their treatment of the plumbing, electrical and air-conditioning facilities, and that the proposed building could not be constructed within the specified limits of $60,000.00 to $70,000.00. Petitioner, however, testified that the plans and specifications were substantially complete and that it was good practice to omit certain details relating to plumbing and elеctrical facilities, as those were supplied by the contractor or subcontractor. Petitioner also testified at length regarding the modifications of the original scheme suggested by respondent at various points in the course of the work. While he did not testify specifically that it was understood that these modifications would affect cost limitations agreed upon, it is clear from his testimony that the result of such changes would be an increase in the overall cost of the project. This testimony, although given by a party to the suit, is in direct conflict with that offered by respondent, and we cannоt hold that it did not raise an issue of fact to be submitted to the jury.
Respondent’s motion for an instructed verdict contained the further ground that a recovery on quantum, meruit could not be had since the evidence shоwed an express contract. Petitioner does not assert here any claim of right to recover on that ground.
Our conclusion on the case as a whole is that the judgments of both courts below should be reversed, and the cause remanded to the trial court.
Opinion delivered October 5,1960.
