I found it while running tests for my
Encumbrance and TU penalty work
When you swap ammo in combat the wrong item is placed back in the source container:
You can reproduce it: (I checked the latest rev without my changes)
1) Get a soldier equiped with Rocket Launcher with HE Rocket loaded and an spare IC Rocket, lets say in the belt
2) Enter combat
3) Open the soldier inventory and drag the IC Rocket to the Launcher -- Launcher loaded OK but a new IC Rocket will be placed in the belt instead of the HE Rocket that was unloaded
4) Drag the fake IC Rocket to the Launcher -- Launcher is now loaded with a HE Rocket and there is a (fake) HE Rocket in the belt
I've nailed it to
G_ActorInvMove and the way it handles
IA_RELOAD_SWAP cases
Should I submit a separate patch for this?
Edit: This seems to affect 2.3 as well