Day: November 19, 2011

  • How to edit an array as you’re looping through it

    I was getting random crashes and I wasn’t sure why. Then I found out changing an array inside a loop that was going through each of the array’s items causes this (makes sense when you think about it) What you should do is inside the loop, collect up all the items to be removed inside…