Quote:
Originally Posted by zokemon
But like Stefan said, player.weapons is a special object in that it can give you a string list which could include weapons that don't actually exist. If you try to removeweapon() a weapon in that list that isn't an actual weapon, the weapon won't be removed from the list thus causing an infinite loop.
|
Indeed you're right. Perhaps there should come some built in check to see if a weapon in someone's weaponlist still exists.