Quote:
Originally Posted by salesman
The reason it only works for the rifle is because it is the last member of the array. It is being set to true properly for the rest of them, but you're also immediately setting it back to false in the next loop iteration.
Try breaking out of the loop after you set it to true (and have performed all of your logic).
|
How exactly would I break out of the loop though, I don't really get it.
