From 0acf6b89009d2995a901664633750bf663011889 Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 27 Feb 2019 21:18:44 +0100 Subject: [PATCH] unitframes: move sanity check within refresh --- api/unitframes.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/unitframes.lua b/api/unitframes.lua index 8438e3b8..8e0a6451 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -973,7 +973,7 @@ function pfUI.uf:RefreshUnit(unit, component) if not unit.label then return end if not unit.hp then return end if not unit.power then return end - + if not unit.id then unit.id = "" end local component = component or "" if unit.config.visible ~= "1" then @@ -1060,7 +1060,6 @@ function pfUI.uf:RefreshUnit(unit, component) -- create required fields if not unit.cache then unit.cache = {} end - if not unit.id then unit.id = "" end if not unit:IsShown() then return end