With World War I raging in Europe, Szilard received notice on January 22, 1916, that he had been drafted into the 5th Fortress Regiment, but he was able to continue his studies. He enrolled as an engineering student at the Palatine Joseph Technical University, which he entered in September 1916. The following year he joined the Austro-Hungarian Army's 4th Mountain Artillery Regiment, but immediately was sent to Budapest as an officer candidate. He rejoined his regiment in May 1918 but in September, before being sent to the front, he fell ill with Spanish Influenza and was returned home for hospitalization. Later he was informed that his regiment had been nearly annihilated in battle, so the illness probably saved his life. He was discharged honorably in November 1918, after the Armistice.