Quantcast

This might fix the rare bug where portraits are blank.

Scott Sibley [10-02-10 - 21:24]
This might fix the rare bug where portraits are blank.
Filename
Modules/Portrait/Portrait.lua
diff --git a/Modules/Portrait/Portrait.lua b/Modules/Portrait/Portrait.lua
index faaff3a..4045158 100644
--- a/Modules/Portrait/Portrait.lua
+++ b/Modules/Portrait/Portrait.lua
@@ -99,7 +99,11 @@ end

 function mod:SetUnit()
 	if not self.text then return end
+
 	SetPortraitTexture(self.texture, StarTip.unit)
+
+	if not self.texture:GetTexture() then return end
+
 	if self.db.profile.animated then
 		model:SetUnit(StarTip.unit)
 		self.texture:Hide()