Maximilian III
If one of his sons had lived, he would have become Prince-elector of Bavaria in 1777 after the death of Maximilian III Joseph.