When i try to add sprites to a sprite list from anywhere other than the LoadContent() method, it crashes. The error message is:‘Collection was modified; enumeration operation may not execute.’ I think I understand what this means, but I have no idea why it is showing up. I’m using the sprite class from Oyyou’s tutorials, if you were wondering.
Do you know why this is? If you need more code, just ask. Any help would be appreciated!