call may be used on boolean

This commit is contained in:
p.kosyh 2010-03-16 07:32:09 +00:00
parent 93040bdf3e
commit 80376b8c35

View file

@ -639,6 +639,9 @@ function call(v, n, ...)
callpop()
return a,b
end
if type(v[n]) == 'boolean' then
return v[n]
end
error ("Method not string nor function:"..tostring(n));
end