mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-09-03 00:13:01 +00:00
Fix to get correct parent class
This commit is contained in:
@@ -277,9 +277,9 @@ end
|
||||
function BASE:GetParent( Child )
|
||||
local Parent
|
||||
if rawget( Child, "__" ) then
|
||||
Parent = getmetatable( Child.__ ).__Index
|
||||
Parent = getmetatable( Child.__ ).__index
|
||||
else
|
||||
Parent = getmetatable( Child ).__Index
|
||||
Parent = getmetatable( Child ).__index
|
||||
end
|
||||
return Parent
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user