api: make sure anchor exists before aligning to it

This commit is contained in:
shagu
2023-02-28 19:09:04 +01:00
parent 3894a99a65
commit cea8e750d2
+2 -1
View File
@@ -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