put correct item into gun, not by position but by pointer.
Merge pull request #6322 from BevapDin/fix-some-bug

Fix for 6146