Any State, county, or city officer who is intoxicated while in discharge of the duties of his office, or by reason of intoxication is disqualified for the discharge of, or neglects his duties, is guilty of a misdemeanor. On conviction of such misdemeanor he forfeits his office, and the vacancy occasioned thereby shall be filled in the same manner as if the officer had filed his resignation in the proper office.