mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-24 21:10:49 +00:00
added missing nil check for api.lua
This commit is contained in:
@@ -1440,6 +1440,7 @@ function pfUI.api.GetNoNameObject(frame, objtype, layer, arg1, arg2)
|
|||||||
local arg2 = arg2 and gsub(arg2, "([%+%-%*%(%)%?%[%]%^])", "%%%1")
|
local arg2 = arg2 and gsub(arg2, "([%+%-%*%(%)%?%[%]%^])", "%%%1")
|
||||||
|
|
||||||
local objects
|
local objects
|
||||||
|
if not frame or not frame.GetRegions then return end
|
||||||
if objtype == "Texture" or objtype == "FontString" then
|
if objtype == "Texture" or objtype == "FontString" then
|
||||||
objects = {frame:GetRegions()}
|
objects = {frame:GetRegions()}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user