 These were at once occupied by Austrian troops, with the secret consent of Charles Theodore himself, who was without legitimate heirs, and wished to obtain from the emperor the elevation of his natural children to the status of princes of the Empire.The protests of the next heir, Charles II, Duke of Zweibrücken (Deux-Ponts), supported by the king of Prussia, led to the War of Bavarian Succession.By the peace of Teschen (13 May 1779) the Innviertel was ceded to Austria, and the succession secured to Charles of Zweibrücken.