fix in call ret

This commit is contained in:
p.kosyh 2010-07-09 17:25:58 +00:00
parent 5fb30abbc8
commit 4c1dcc3580

View file

@ -727,9 +727,13 @@ function call(v, n, ...)
-- boolean, nil
if type(a) == 'boolean' and b == nil then
b, a = a, stead.pget()
if a == nil and not cctx().action then
a = b
b = nil
if a == nil then
if cctx().action then
a = true
else
a = b
b = nil
end
end
elseif a == nil and b == nil then
a = stead.pget()