Passage: Prior to 1847, Detroit fought to maintain the Capitol within its jurisdiction, but communities in the growing western part of the state had many reasons for wanting a move inland, including the need to increase defensibility by moving the state government away from the Canada–US border. Detroit had been occupied during the War of 1812, and the border area of Michigan of less than a mile between Detroit and Windsor, Ontario, at the Detroit River continued to be occupied by British troops on both banks. Proponents of moving the capitol also sought to promote settlement and the economy in the interior, as well as making the government more accessible to the people throughout the state.Contenders seeking designation as the new Capitol included Ann Arbor, Jackson, Grand Rapids, and Shiawassee Township in Shiawassee County. At one point during the debate, Marshall officials were so certain of its selection that they built a governor's mansion. After extensive debate, State Senator Joseph H. Kilbourne of Ingham County proposed that the nearly uninhabited Lansing Township be made the seat of government. The legislature agreed, with the location north of Ann Arbor, west of Detroit, and east of Grand Rapids being deemed a suitable compromise. The legislature renamed it as the Town of Michigan, though by 1848 the original name of Lansing was restored.Construction began in 1847 on the state capitol building in Lansing, a temporary structure on the block bordered by Washington Avenue, Capitol Avenue, Allegan Street, and Washtenaw Street. It was a simple two-story wood frame structure, painted white with green wooden shutters and topped by a tin cupola. The total cost for construction was $22,952.01 ($620,000 in 2019). The building was sold when the permanent capitol building opened in 1879. It was then used as a factory until, like the first capitol, it was destroyed by a fire in 1882.

Question: What year was the building demolished by burning flames?
1882