From a70de4136a44aca4bf903edddd4990f9197e26d0 Mon Sep 17 00:00:00 2001 From: Kenny Shields Date: Fri, 2 May 2014 17:14:45 -0400 Subject: [PATCH] Fix error when calling frame:MakeTop This error was a result of changes made in commit 1642d10816cc72eaaaea8b7ba04aec4bfd904355 --- objects/frame.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/objects/frame.lua b/objects/frame.lua index 3322ea7..27aae61 100644 --- a/objects/frame.lua +++ b/objects/frame.lua @@ -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()