From 22ca862be8cdc4e861deb7debe6eb813337e3e6c Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 18 Sep 2017 20:26:22 +0200 Subject: [PATCH] unitframes: maintain an available unitframe index --- api/unitframes.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/unitframes.lua b/api/unitframes.lua index 2782ba68..63131907 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -1,4 +1,5 @@ pfUI.uf = CreateFrame("Frame",nil,UIParent) +pfUI.uf.frames = {} local pfValidUnits = {} pfValidUnits["player"] = true @@ -553,6 +554,7 @@ function pfUI.uf:CreateUnitFrame(unit, id, config, tick) end end + table.insert(pfUI.uf.frames, f) return f end