This commit is contained in:
niu2x 2016-10-27 09:46:07 +08:00 committed by minggo
parent 323ea7c0d4
commit 92af2b2b6f
1 changed files with 1 additions and 1 deletions

View File

@ -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