mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-27 01:46:03 +00:00
api: make sure anchor exists before aligning to it
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user