mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-18 16:04:22 +00:00
Fix error when calling frame:MakeTop
This error was a result of changes made in commit 1642d10816
This commit is contained in:
parent
6c833ad975
commit
a70de4136a
@ -763,11 +763,12 @@ end
|
||||
function newobject:MakeTop()
|
||||
|
||||
local key = 0
|
||||
local base = loveframes.base
|
||||
local basechildren = base.children
|
||||
local numbasechildren = #basechildren
|
||||
|
||||
-- check to see if the object's parent is not the base object
|
||||
if self.parent ~= loveframes.base then
|
||||
if self.parent ~= base then
|
||||
local baseparent = self:GetBaseParent()
|
||||
if baseparent.type == "frame" then
|
||||
baseparent:MakeTop()
|
||||
|
Loading…
Reference in New Issue
Block a user