call on string not returns second true (life methods collision)
This commit is contained in:
parent
784ffc933e
commit
e6a882fea4
|
@ -526,7 +526,7 @@ function call(v, n, ...)
|
||||||
return nil,nil;
|
return nil,nil;
|
||||||
end
|
end
|
||||||
if type(v[n]) == 'string' then
|
if type(v[n]) == 'string' then
|
||||||
return v[n],true;
|
return v[n];
|
||||||
end
|
end
|
||||||
if type(v[n]) == 'function' then
|
if type(v[n]) == 'function' then
|
||||||
return v[n](v, unpack(arg));
|
return v[n](v, unpack(arg));
|
||||||
|
|
Reference in a new issue