public
Description: WoW Addon - Food/water macro generator
Homepage: http://www.tekkub.net
Clone URL: git://github.com/tekkub/buffet.git
Click here to lend your support to: buffet and make a donation at www.pledgie.com !
Use the correct value when comparing items
tekkub (author)
Wed Feb 13 17:47:17 -0800 2008
commit  cca55ec7723df38656f531ed3b6e2fc4b8b440d3
tree    76f223909bfee2c293b1e9ea42735f9b6af14f43
parent  d5e8e16f1b7028a0240f08726440b822eb61e984
...
50
51
52
53
54
 
 
55
56
57
...
50
51
52
 
 
53
54
55
56
57
0
@@ -50,8 +50,8 @@ local function scan()
0
       local _, _, _, _, reqlvl = link and GetItemInfo(link)
0
       if id and allitems[id] and (not reqlvl or reqlvl <= mylevel) then
0
         local _, stack = GetContainerItemInfo(bag,slot)
0
- for set,items in pairs(items) do
0
- local thisbest, val = bests[set], items[id]
0
+ for set,setitems in pairs(items) do
0
+ local thisbest, val = bests[set], setitems[id]
0
           if val and (not thisbest.val or (thisbest.val < val or thisbest.val == val and thisbest.stack > stack)) then
0
             thisbest.id, thisbest.val, thisbest.stack = id, val, stack
0
           end

Comments

    No one has commented yet.