CleverRaven/Cataclysm-DDA — pull request #6092 by BevapDin (2014-02-13 15:26:09+00:00)
Title: Fix worn invlet bug

Removes the invlet from the stack of clothes of which one has been taken to wear it.

The bug appears (only?) from the advanced inventory, if using 'W' from the main screen it shows the inventory to select an item and this triggers a restacking of the inventory. This restacking makes sure that invlets are unique.

Tested with a stack of 2 tool belts. In advanced inventory using 'e'xaming, 'W'ear two times results in both worn belts having the same invlet.

Added a call to restack in advanced inventory to make it work with activating items: test with a stack of several flashlights, active it, the whole stack seems to became activated, but it's actually only the first item, the stack is simply not split into a two stacks.

Fixes #6059