From f1d709a46641867dd870b7533d62500cb0674dfa Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 1 May 2023 19:05:31 +0200 Subject: [PATCH] skin: check width value before aligning to them --- modules/skin.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/skin.lua b/modules/skin.lua index 62cfcbca..dbf64c1a 100644 --- a/modules/skin.lua +++ b/modules/skin.lua @@ -24,7 +24,7 @@ pfUI:RegisterModule("skin", "vanilla:tbc", function () return elseif center and center:IsShown() and left and left:IsShown() then local width = left.rightObj:GetRight() - if width ~= UIParent.pfLeftAligned then + if width and width ~= UIParent.pfLeftAligned then center:SetPoint("TOPLEFT", "UIParent", "TOPLEFT", width + 10, -104) UIParent.pfLeftAligned = width end