'class.instanceOf' may have problems
This is my modified version:
function class:instanceOf(clazz)
local curClass = self.__class
while curClass do
if curClass == clazz then
return true
end
curClass = curClass.__super
end
return false
end
Replace "curClass = self.super" with "curClass = curClass.super"
'class.instanceOf' may have problems This is my modified version:
Replace "curClass = self.super" with "curClass = curClass.super"