call on string not returns second true (life methods collision)

This commit is contained in:
p.kosyh 2009-09-25 12:15:28 +00:00
parent 784ffc933e
commit e6a882fea4

View file

@ -526,7 +526,7 @@ function call(v, n, ...)
return nil,nil;
end
if type(v[n]) == 'string' then
return v[n],true;
return v[n];
end
if type(v[n]) == 'function' then
return v[n](v, unpack(arg));