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 !
Fix water upgrading when items are not cached
tekkub (author)
Sun Aug 24 18:44:37 -0700 2008
commit  47c499a54636d7998d3f02498abbad7f228cdda3
tree    094157895fd93562d28155b0e31a8e6500a425c1
parent  81d33c7b3172b2372c10b961bed00c904ed096d5
...
38
39
40
41
42
 
 
 
43
44
45
...
38
39
40
 
 
41
42
43
44
45
46
0
@@ -38,8 +38,9 @@ function StealYourCarbon:UpgradeWater()
0
       buy = buy + (self.db.stocklist[id] or 0)
0
       if self.db.stocklist[id] then oldid = id end
0
       self.db.stocklist[id] = nil
0
- elseif level >= (select(5, GetItemInfo(id)) or 0) then
0
- found = id
0
+ else
0
+ local _, _, _, _, reqlvl = GetItemInfo(id)
0
+ if level >= reqlvl then found = id end
0
     end
0
   end
0
 

Comments

    No one has commented yet.