The state legislature helped as well , by legalizing gambling in 1931 and thus solidifying the future of the town , though legislators and residents could never have known this at the time .
The legalizing of gambling single-handedly saved the Las Vegas economy