Incidentally, never move weapons from your inventory to your backpack, as if you don't have enough spaces it'll just delete your weapon. If you're planning on switching weapons, always move the weapon you wanna switch to from your backpack into your inventory, and it should swap them around along with all the ammo. I've never dared try it myself though.