real real bugfix

This commit is contained in:
binarycat 2022-03-16 20:38:57 -04:00
parent a3074acb3c
commit 9be52e2b5f

View File

@ -9,8 +9,8 @@ end
function getAncestors(self) function getAncestors(self)
local family = self local family = self
local list = {} local list = {}
while family.__index ~= nil and family.__index ~= family do while family ~= nil do
family = family.__index family = getmetatable(family)
table.insert(list,family) table.insert(list,family)
end end
return list return list