prediction: check for valid label and id

This commit is contained in:
shagu
2017-12-22 00:51:23 +01:00
parent e5e2aeda65
commit 6bc822d927
+1 -1
View File
@@ -152,7 +152,7 @@ pfUI:RegisterModule("prediction", function ()
OVERHEALPERCENT = OVERHEALPERCENT or 20
for id, frame in _G.pfUI.uf.frames do
if frame:IsVisible() then
if frame:IsVisible() and frame.label and frame.id then
local unit = frame.label .. frame.id
local health, maxHealth = UnitHealth(unit), UnitHealthMax(unit)