mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-04 04:30:01 +00:00
skin: fix logic error on undefined "d"
This commit is contained in:
+2
-2
@@ -68,14 +68,14 @@ pfUI:RegisterModule("skin", function ()
|
||||
ShoppingTooltip1:SetScript("OnShow", function()
|
||||
local a, b, c, d, e = this:GetPoint()
|
||||
local border = tonumber(C.appearance.border.default)
|
||||
if d and d == 0 then d = (border*2)+d+1 end
|
||||
if not d or d == 0 then d = (border*2) + ( d or 0 ) + 1 end
|
||||
if a then this:SetPoint(a, b, c, d, e) end
|
||||
end)
|
||||
|
||||
ShoppingTooltip2:SetScript("OnShow", function()
|
||||
local a, b, c, d, e = this:GetPoint()
|
||||
local border = tonumber(C.appearance.border.default)
|
||||
if not d or d == 0 then d = (border*2)+d+1 end
|
||||
if not d or d == 0 then d = (border*2) + ( d or 0 ) + 1 end
|
||||
if a then this:SetPoint(a, b, c, d, e) end
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user