changeset 233:9b9f5fc84d34

Fix shapeshift bar only displaying form 1 N times
author Flick
date Tue, 22 Mar 2011 11:48:09 -0700
parents afb5ff4eccc0
children 0e20f65375d5
files modules/Stance.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/Stance.lua	Tue Mar 22 11:35:33 2011 -0700
+++ b/modules/Stance.lua	Tue Mar 22 11:48:09 2011 -0700
@@ -59,7 +59,7 @@
         btnCfg[i] = {}
       end
       if btns[i] == nil then
-        local success, r = pcall(Button.New,Button,i,btnCfg,bar,i>1 and btnCfg[i-1].stanceID)
+        local success, r = pcall(Button.New,Button,i,btnCfg[i],bar,i>1 and btnCfg[i-1].stanceID)
         if success and r then
           btns[i] = r
           bar:AddButton(i,r)