War of the Bavarian Succession
The ensuing diplomatic crisis led to the War of the Bavarian Succession, which was ended by the Peace of Teschen (1779). Charles Theodore accepted the Bavarian succession, but agreed that his illegitimate descendants could not inherit Bavaria. Austria acquired the Innviertel, a part of Bavaria in the basin of the Inn river.