Opinion
Plaintiff, Lonnie Woolett, appeals from a judgment entered in favor of defendant, American Employers Insurance Company, after the trial court sustained general demurrers to both counts of the complaint and plаintiff declined to amend within the time allowed by the court.
Plaintiff’s complaint, which contained two counts, was filed on March 3, 1976. The first count alleged that plaintiff was involved in an automobile accident on May 31, 1966; that later he brought suit against Oscar Crawford and John Penrose, and that, on April 20, 1970, a joint and several judgment in the amount of $633,000 was entered in favor of plaintiff and against Crawford and Penrose; that at the time of the *622 accident, Crawford and Penrose were covered by an automobile liability insurance policy issued by defendant; that plaintiff" had demanded that defendant pay the amount of the judgment which he had recovered against Crawford and Penrose, but that defendant refused to do so; that plaintiff" was a third party beneficiary of the policy issued to Crawford and Penrose and was entitled to bring suit directly against defendant pursuant to section 11580 of the Insurance Code.
The second сount of the complaint alleged that both before and after plaintiff" recovered the judgment against Crawford and Penrose, he had offered to settle the case within the limits of defendant’s insurance policy, but that dеfendant had refused such offers of settlement and, in so doing, had acted in bad faith; that defendant’s refusal of these settlement offers had subjected Crawford to a judgment substantially in excess of the policy limits; that on February 25, 1976, plаintiff had obtained from Crawford a written assignment of all the rights which Crawford had against defendant for its refusal to settle the case within the policy limits.
Defendant demurred to both counts of the complaint, asserting that they were barrеd by the applicable statute of limitations, viz., section 337, subdivision 1, of the Code of Civil Procedure, and that the second count was also barred by the doctrine of res judicata, since Crawford’s rights against defendant had been finally adjudicated in an action brought in New Mexico.
The trial court sustained the demurrer with leave to amend and when plaintiff declined to amend, rendered a judgment for defendant.
The first count of the complaint purported to state a cause of action based upon section 11580 of the Insurance Code. Subdivision (b)(2) of that statute provides, in part, that eveiy liability insurance policy issued or delivered in this state must contain and shall be construed to contain “A provision that whenever judgment is secured against the insured . . . in an action based upon bodily injury ... or property damage, then an action may be brought against the insurer on the policy and subject to its terms аnd limitations, by such judgment creditor to recover on the judgment.”
Section 337, subdivision 1, of the Code of Civil Procedure, provides that “An action upon any contract, obligation or liability founded upon an instrument in writing” must be commenced within four years. Since
*623
section 11580 of the Insurance Code authorizes an action against the insurer “on the policy and subject to its terms and limitations,” it would appear that the cause of action alleged in the first count оf plaintiff’s complaint was subject to the four-year period of limitations. It is perhaps because the language of section 11580 is so free from ambiguity in this regard that there is virtually no case law dealing with the question of what statute of limitations applies.
Malmgren
v.
Southwestern Auto. Ins. Co.
(1932)
Plaintiff’s contention that a different and longer period of limitations applies is based upon two cases:
Olds
v.
General Acc. Fire etc. Corp.
(1945)
The second case cited by plaintiff,
Gay
v.
Straube, supra,
We conclude that the cause of action alleged in the first count of plaintiff’s complaint was governed by the four-year statute of limitations prescribed by section 337, subdivision 1, of the Cоde of Civil Procedure. It follows, therefore, that the trial court was correct in sustaining defendant’s demurrer to that count. A cause of action predicated upon section 11580, subdivision (b)(2), of the Insurance Code, arises whеn a final judgment against the insured has been entered.
(Zander
v.
Texaco, Inc., supra,
In the second count of his complaint, plaintiff, as the assignee of Crawford, sought to recover damages for defendant’s breach of the implied covenаnt to treat Crawford, its insured, with good faith and to settle within the policy limits where there was a substantial likelihood that a judgment in excess of those limits would otherwise be recovered
*625
against the insured. In
Murphy
v.
Allstate Ins. Co., supra, 11
Cal.3d 937, the California Supreme Court held that the insurer’s duty to settle is intended to benefit the insured only, and that an injured person who recovers judgment against the insured may not bring suit against the insurer for breach of the covenant to settle unless he has obtained an assignment of such cause of action from the insured. Thus, plaintiff’s right to recover for defendant’s breach of the implied covenant to settle, in this instance, was entirely dependent upon the existence of an assignment from Crawford. As Crawford’s assignee, plaintiff stands in Crawford’s shoes and is subject to any defenses which defendant had against Crawford prior to notice of the assignment. (Civ. Code, § 1459; Code Civ. Proc., § 368;
Berrington
v.
Williams
(1966)
In
Comunale
v.
Traders & General Ins. Co.
(1958)
We also agree with defendant that the second count of plaintiff’s complaint was subject to demurrer on the ground of res judicata. Here, the trial court took judicial notice of a decision by the Supreme Court of New Mexico, rendered in April 1975, which held that defendant insurer at no time had a duty to indemnify Crawford for his liability to plаintiff; that an employee exclusion in the policy applied, and eliminated coverage for Crawford’s liability to plaintiff; and that in the absence of any duty by defendant to indemnify Crawford, defendant likewise had no duty to settle the case within the policy limits.
In
Bernhard
v.
Bank of America
(1942)
In this instance, those conditions were met: (1) the New Mexico decision dеtermined that defendant had no duty to settle plaintiff’s claim with Crawford; (2) the New Mexico judgment is a final judgment determining said issue on its merits; and (3) since plaintiff is suing as Crawford’s assignee, he is in privity with Crawford, who was a party to the New Mexico action.
The judgment is affirmed.
Taylor, P. J., and Kane, J., concurred.
Appellant’s petition for a hearing by the Supreme Court was denied May 11, 1978. Bird, C. J., Tobriner, J., and Mosk, J., were of the opinion that the petition should be granted.
