Quantcast

fixed portrait bug (?)

failcoder [08-15-15 - 01:35]
fixed portrait bug (?)
Filename
SVUI_UnitFrames/libs/oUF/elements/portraits.lua
diff --git a/SVUI_UnitFrames/libs/oUF/elements/portraits.lua b/SVUI_UnitFrames/libs/oUF/elements/portraits.lua
index d47b36e..a35ea5c 100644
--- a/SVUI_UnitFrames/libs/oUF/elements/portraits.lua
+++ b/SVUI_UnitFrames/libs/oUF/elements/portraits.lua
@@ -91,10 +91,12 @@ end

 local ForceTargetUpdate = function(self)
 	local portrait = self.Portrait
+	if(not portrait.__owner) then return end
 	return Path(portrait.__owner, 'ForceUpdate', portrait.__owner.unit)
 end

 local ForceUpdate = function(element)
+	if(not element.__owner) then return end
 	return Path(element.__owner, 'ForceUpdate', element.__owner.unit)
 end