WoW BlueTracker Home | RSS | News | Contact
Recent | Search | Archive | CS Posts
Poster: Iriel at 9/8/2005 5:41:31 PM PDT
Subject: Slouken: Bug in tDeleteItem
   Currently if you have two consecutive items, and ask tDeleteItem to remove them, it'll miss the second one (because it deosn't compensate for the removal of the first).


-- Table Utility Functions
function tDeleteItem(table, item)
local index = 1;
while table[index] do
if ( item == table[index] ) then
tremove(table, index);
else
index = index + 1;
end

end
end


X={1,2,3,3,4,5}
tDeleteItem(X, 3)
X={1,2,3,4,5}

X={1,2,3,4,3,5}
tDeleteItem(X, 3)
X={1,2,4,5}
> Use ## SavedVariables: instead of RegisterForSave()
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=212461&p=#post212461
 
Poster: slouken at 9/8/2005 7:37:46 PM PDT
Subject: Re: Slouken: Bug in tDeleteItem
   Forwarded, thanks.
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=212461&p=#post212548
Poster: horkin at 9/9/2005 10:22:52 AM PDT
Subject: Re: Slouken: Bug in tDeleteItem
   Unfortunately this fix didn't make it into patch 7, but will be in for patch 8. Thanks for the help!
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=212461&p=#post212875

View all recent official Blue Posts

WoW Blue Tracker: Archiving World of Warcraft Blue Posts
since March 2005
Home | RSS | News | Contact
Recent | Search | Archive | CS Posts
 

Why Ads?