# HG changeset patch # User Flick # Date 1301334216 25200 # Node ID 9e708a155ab984f938acd254efd35f9c7e43fe34 # Parent 586447595262a1ab6733e8daba091052c1b8536c Fixed Stance/Shapeshift bar not being saved correctly across reboots diff -r 586447595262 -r 9e708a155ab9 ReAction.lua --- a/ReAction.lua Sat Mar 26 12:46:06 2011 -0700 +++ b/ReAction.lua Mon Mar 28 10:43:36 2011 -0700 @@ -228,8 +228,10 @@ config.x = config.x or 0 else config = config or profile.bars[name] or { } - if not config or not config.type or not self.barTypes[config.type] then - error(("ReAction: Unable to construct/fetch config table for bar '%s'"):format(name)) + if not config then + error(("ReAction: Unable to fetch config table for bar '%s'"):format(name)) + elseif not config.type or not self.barTypes[config.type] then + error(("ReAction: Unrecognized bar type '%s' for bar '%s'"):format(tostring(config.type), name)) end class = self.barTypes[config.type] end diff -r 586447595262 -r 9e708a155ab9 StanceButton.lua --- a/StanceButton.lua Sat Mar 26 12:46:06 2011 -0700 +++ b/StanceButton.lua Mon Mar 28 10:43:36 2011 -0700 @@ -35,7 +35,7 @@ local Super = ReAction.Button local Stance = setmetatable( { - defaultConfig = { + defaultBarConfig = { type = buttonTypeID, btnHeight = 36, btnWidth = 36,