View Single Post
  #14  
Old 02-24-2009, 12:10 PM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

Quote:
Originally Posted by joligario View Post
You have it outside of the sub..

Personally, I like having the return items in the elsif statement just so I feel better that the hand-in item won't accidentally be returned along with the reward.
I'm pretty sure that can't happen. From what I understand if it satisfies the if condition, the item is actually removed from the hash so it wouldn't be available to be returned. I haven't looked at it all that much but that is how I understand it to work.

Good catch on the placement of the return too. I didn't look at the code real close.
Reply With Quote