This commit is contained in:
Bunny67
2018-07-13 16:56:32 +03:00
parent 623cfeaddd
commit 89e48a1432
2 changed files with 5 additions and 4 deletions
+4 -4
View File
@@ -469,8 +469,8 @@ local function generateName(unit, ...)
local name = "oUF_" .. gsub(style, gsub("^oUF_?", ""), gsub("[^%a%d_]+", ""))
local raid, party, groupFilter
for i = 1, getn(arg), 2 do
local att, val = select(i, unpack(arg))
for i = 1, arg.n, 2 do
local att, val = arg[i], arg[i+1]
if(att == "showRaid") then
raid = true
elseif(att == "showParty") then
@@ -596,8 +596,8 @@ do
header.GetAttribute = getAttribute
--header:SetAttribute("template", "SecureUnitButtonTemplate")
for i = 1, getn(arg), 2 do
local att, val = select(i, unpack(arg))
for i = 1, arg.n, 2 do
local att, val = arg[i], arg[i+1]
if(not att) then break end
header:SetAttribute(att, val)