From c417f89d341f4e41e7b5f73d382001acff895a76 Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 29 Sep 2018 01:18:13 +0200 Subject: [PATCH] prediction: add missing inpairs --- modules/prediction.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/prediction.lua b/modules/prediction.lua index e1376baa..82beb3e0 100644 --- a/modules/prediction.lua +++ b/modules/prediction.lua @@ -172,7 +172,7 @@ pfUI:RegisterModule("prediction", function () function pfUI.prediction:UpdateUnitFrames(name, heal, ress) OVERHEALPERCENT = OVERHEALPERCENT or 20 - for id, frame in _G.pfUI.uf.frames do + for id, frame in pairs(_G.pfUI.uf.frames) do if frame:IsVisible() and frame.label and frame.id then local unit = frame.label .. frame.id local health, maxHealth = UnitHealth(unit), UnitHealthMax(unit)