I don't even know what caused the glitch to happen, I can only assume it had something to do with building structures in sanctuary because I have a save from about 24 hours of progress back from where I am currently where I hadn't built any thing yet besides defenses, food, and water and the vault is fine on that save but I'm not going 24 hours back for one gun.