From cea8e750d203d42778647ffcaa641af29185e3c3 Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 28 Feb 2023 19:09:04 +0100 Subject: [PATCH] api: make sure anchor exists before aligning to it --- api/api.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/api.lua b/api/api.lua index 36570e06..dbb2e2b0 100644 --- a/api/api.lua +++ b/api/api.lua @@ -644,7 +644,8 @@ function pfUI.api.LoadMovable(frame, init) frame:SetScale(frame.posdata.scale) for id, point in pairs(frame.posdata.pos) do - frame:SetPoint(unpack(point)) + local a, b, c, d, e = unpack(point) + if a and b then frame:SetPoint(a,b,c,d,e) end end end end