 Before the death of Charles Theodore (16 February 1799) the Austrians had again occupied the country, in preparation for renewing the war with France.Maximilian IV Joseph (of Zweibrücken), the new elector, succeeded to a difficult inheritance.Though his own sympathies, and those of his all-powerful minister, Maximilian von Montgelas, were, if anything, French rather than Austrian, the state of the Bavarian finances, and the fact that the Bavarian troops were scattered and disorganized, placed him helpless in the hands of Austria; on 2 December 1800 the Bavarian arms were involved in the Austrian defeat at Hohenlinden, and Moreau once more occupied Munich.