call may be used on boolean
This commit is contained in:
parent
93040bdf3e
commit
80376b8c35
|
@ -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
|
||||
|
||||
|
|
Reference in a new issue