core: global environment cleanup

This commit is contained in:
Road-block
2019-03-31 14:59:21 +02:00
committed by shagu
parent 9ecafee7d5
commit e50fabfff9
15 changed files with 25 additions and 23 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ pfUI:RegisterModule("raid", function ()
for r=1, 8 do
for g=1, 5 do
i = g + 5*(r-1)
local i = g + 5*(r-1)
pfUI.uf.raid[i] = pfUI.uf:CreateUnitFrame("Raid", i, C.unitframes.raid)
pfUI.uf.raid[i]:UpdateFrameSize()
@@ -42,7 +42,7 @@ pfUI:RegisterModule("raid", function ()
-- add units to the beginning of their groups
function pfUI.uf.raid:AddUnitToGroup(index, group)
for subindex = 1, 5 do
ids = subindex + 5*(group-1)
local ids = subindex + 5*(group-1)
if pfUI.uf.raid[ids].id == 0 and pfUI.uf.raid[ids].config.visible == "1" then
pfUI.uf.raid[ids].id = index
pfUI.uf.raid[ids]:Show()