02.01.2017, 14:27
I should also mention that the array should either hold INVALID_WEAPON_ID over indexes : {19, 20, 21} or have a proper condition over them too. I believe it's always better to point out and give chances to fix than posting the fixed code here.