Weapon Selection Blues
Your solder can carry two primary weapons and a secondary (handgun) weapon. Which weapon do you swap out when you interact with an ammo crate depends on the primary weapon being equipped at the time.
Basically, if you don't want a weapon in your inventory, equip it and swap it out.