Quote:
Originally Posted by Switch
For some reason, doing things like for (temp.pie : this.allpies) give me problems in some cases (I can't list one off the top of my head), so I tend not to do that if it's not for allplayers or players, since it's always worked for those.
|
Most likely you're trying to remove things
PHP Code:
for (temp.npc : player.level.npcs) {
npc.destroy();
}
Things like that can cause trouble because they're removing from the array. Similar things happen when removing weapons from players.