Fix to get correct parent class

This commit is contained in:
FlightControl 2017-07-07 10:41:16 +02:00
parent 4c5aad51b3
commit 5bbe5fca60

View File

@ -277,9 +277,9 @@ end
function BASE:GetParent( Child ) function BASE:GetParent( Child )
local Parent local Parent
if rawget( Child, "__" ) then if rawget( Child, "__" ) then
Parent = getmetatable( Child.__ ).__Index Parent = getmetatable( Child.__ ).__index
else else
Parent = getmetatable( Child ).__Index Parent = getmetatable( Child ).__index
end end
return Parent return Parent
end end