mirror of https://github.com/axmolengine/axmol.git
bug fix (#16747)
This commit is contained in:
parent
323ea7c0d4
commit
92af2b2b6f
|
@ -252,7 +252,7 @@ iskindof_ = function(cls, name)
|
|||
if type(__index) == "table" and rawget(__index, "__cname") == name then return true end
|
||||
|
||||
if rawget(cls, "__cname") == name then return true end
|
||||
local __supers = rawget(cls, "__supers")
|
||||
local __supers = rawget(__index, "__supers")
|
||||
if not __supers then return false end
|
||||
for _, super in ipairs(__supers) do
|
||||
if iskindof_(super, name) then return true end
|
||||
|
|
Loading…
Reference in New Issue