Mercurial > wow > reaction
comparison modules/Stance.lua @ 233:9b9f5fc84d34
Fix shapeshift bar only displaying form 1 N times
author | Flick |
---|---|
date | Tue, 22 Mar 2011 11:48:09 -0700 |
parents | c4b134512c50 |
children |
comparison
equal
deleted
inserted
replaced
232:afb5ff4eccc0 | 233:9b9f5fc84d34 |
---|---|
57 for i = 1, n do | 57 for i = 1, n do |
58 if btnCfg[i] == nil then | 58 if btnCfg[i] == nil then |
59 btnCfg[i] = {} | 59 btnCfg[i] = {} |
60 end | 60 end |
61 if btns[i] == nil then | 61 if btns[i] == nil then |
62 local success, r = pcall(Button.New,Button,i,btnCfg,bar,i>1 and btnCfg[i-1].stanceID) | 62 local success, r = pcall(Button.New,Button,i,btnCfg[i],bar,i>1 and btnCfg[i-1].stanceID) |
63 if success and r then | 63 if success and r then |
64 btns[i] = r | 64 btns[i] = r |
65 bar:AddButton(i,r) | 65 bar:AddButton(i,r) |
66 else | 66 else |
67 n = i - 1 | 67 n = i - 1 |