Fix defect with selling weapons

Magazines are inside an array key-value-pairs it appears.
This makes it so that the key of the pair is used.