fix stance options

This commit is contained in:
Hendrik Leppkes
2008-09-01 14:26:39 +00:00
parent c58af7643f
commit df656280af
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ local DefaultStanceMap = setmetatable({}, { __index = function(t,k)
return newT
end})
Bartender4.StanceMap = DefaultStanceMap
local searchFunc = function(h, n) return (h.match == n or h.match2 == n or h.id == n) end
+2 -2
View File
@@ -185,7 +185,7 @@ function module:GetStateOptionsTable()
type = "group",
inline = true,
name = "",
hidden = function() return not (module.DefaultStanceMap[playerclass]) end,
hidden = function() return not (Bartender4.StanceMap[playerclass]) end,
get = optGetter,
set = optSetter,
disabled = disabledFunc,
@@ -200,7 +200,7 @@ function module:GetStateOptionsTable()
}
do
local defstancemap = self.DefaultStanceMap[playerclass]
local defstancemap = Bartender4.StanceMap[playerclass]
if defstancemap then
for k,v in pairs(defstancemap) do
if not options.stances.args[v.id] then