From d2b22bc049151ec0da065ceec8020d34e19cf68a Mon Sep 17 00:00:00 2001 From: Scott Sibley Date: Fri, 22 Oct 2010 00:04:25 +0000 Subject: [PATCH] Possible bug fix --- Modules/Portrait/Portrait.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Portrait/Portrait.lua b/Modules/Portrait/Portrait.lua index 96711bb..eb2ee58 100644 --- a/Modules/Portrait/Portrait.lua +++ b/Modules/Portrait/Portrait.lua @@ -98,9 +98,9 @@ function mod:GetOptions() end function mod:SetUnit() - if not self.text then return end + if not self.text or not self.texture then return end - SetPortraitTexture(self.texture, StarTip.unit) + SetPortraitTexture(self.texture, StarTip.unit or "mouseover") if not self.texture:GetTexture() then self.model:Hide() -- 1.7.9.5