public
Description: WoW Addon - Automatically restock items from vendors and your bank
Homepage: http://www.tekkub.net
Clone URL: git://github.com/tekkub/stealyourcarbon.git
Click here to lend your support to: stealyourcarbon and make a donation at www.pledgie.com !
Account for cases where the items in the stock list are not cached (after 
a patch)
tekkub (author)
Fri May 16 15:10:21 -0700 2008
commit  cff36ee20f14f007079fb2df75edc41351fe4bf7
tree    b7c48b841f6c2232de8908d0894145f440d15f8d
parent  03ded84fba98c06afebe766a060bf57d610fa6b9
...
164
165
166
167
 
 
168
169
170
171
172
173
 
174
175
176
...
164
165
166
 
167
168
169
170
171
172
173
 
174
175
176
177
0
@@ -164,13 +164,14 @@ function StealYourCarbon:UpdateConfigList()
0
   for _,row in ipairs(rows) do
0
     if id then
0
       row.id = id
0
- local _, link, _, _, _, _, _, stack, _, texture = GetItemInfo(id)
0
+ local _, link, _, _, _, _, _, stack = GetItemInfo(id)
0
+ local texture = GetItemIcon(id)
0
       row.icon:SetTexture(texture)
0
       row.up:Enable()
0
       if qty == 0 then row.down:Disable() else row.down:Enable() end
0
       row.count:SetText(qty)
0
       row.name:SetText(link)
0
- row.stack:SetText("Stack Size: "..stack)
0
+ row.stack:SetText("Stack Size: "..(stack or "???"))
0
       row.icon:Show()
0
       row:Show()
0
       id, qty = next(self.db.stocklist, id)

Comments

    No one has commented yet.