No, I want each weapon to have a unique key. But, you are right, each iteration of the loop moves the same pointer to a new weapon. But how can I insert a copy of pointers to disabled weapons?
Also, the line in loop is ment to read
And I think this was the error.Code:auto WeaponPtr = weapon;