When Charles VII died in Munich on the 20th of January, 1745, his successor as Elector of Bavaria, Maximilian III Joseph, signed a preliminary peace with Austria. But a strong war-party led by Ignaz von Torring and supported by France wanted to continue the war. After the decisive defeat in the Battle of Pfaffenhofen on 15 April, Maximilian Joseph chose for peace