From 6bc822d927bffb3c39d99ce1e5477b933af3efdb Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 22 Dec 2017 00:51:23 +0100 Subject: [PATCH] prediction: check for valid label and id --- modules/prediction.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/prediction.lua b/modules/prediction.lua index 432aaa79..12476a51 100644 --- a/modules/prediction.lua +++ b/modules/prediction.lua @@ -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)