XSV GTH Moderator
Reputation: 9 Joined: 12 Oct 2005 Posts: 1007 Location: USA
|
Posted: Mon Aug 23, 2010 1:52 pm Post subject: |
|
|
Maybe stick to basics and use a Loop like cometjack suggested, instead of a It.
//Original
for(L2Attackable theMob : mobList)
{
if (theMob.isDead())
{
mobList.remove(theMob);
continue;
}
}
my 2 cents:
//New
for(i=theMob.size();i>0;i--)
{
if (theMob.get(i).isDead())
{
mobList.get(i).remove();
continue;
}
}
sorry if syntax is wrong, haven't used java lately. But you get the idea Xd _________________

Last edited by XSV on Mon Aug 23, 2010 3:22 pm; edited 3 times in total
|
|