Divide, turns out it was actually a bug in the Item editor. The size of MaxCharges was int8 in the item struct but int16 in the structure description I use to generate the UI. All that means is that when MaxCharges was saved out to the DB it would corrupt a byte. That byte happened to be PI_Count.
Fixed now and uploaded to
www.geocities.com/Kaiyodouk/
K.