Thread: removeweapon()
View Single Post
  #13  
Old 07-10-2008, 08:52 PM
Dan Dan is offline
Daniel
Join Date: Oct 2007
Posts: 383
Dan is an unknown quantity at this point
Send a message via MSN to Dan
Quote:
Originally Posted by zokemon View Post
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.
__________________
Reply With Quote