Wolfe's regiment was left behind to garrison Ghent, which meant they missed the Allied defeat at the Battle of Fontenoy in May 1745 during which Wolfe's former regiment suffered extremely heavy casualties. Wolfe's regiment was then summoned to reinforce the main Allied army, now under the command of the Duke of Cumberland. Shortly after they had departed Ghent, the town was suddenly attacked by the French who captured it and its garrison. Having narrowly avoided becoming a French prisoner, Wolfe was now made a brigade major.