cleanup in dlg

This commit is contained in:
p.kosyh 2010-07-11 06:08:52 +00:00
parent 7a53efa468
commit 1a1bc8ba70

View file

@ -965,8 +965,8 @@ end
function phrase_action(self) function phrase_action(self)
local ph = self; local ph = self;
local r = nil; local r, ret;
local ret = nil;
if isDisabled(ph) then if isDisabled(ph) then
return nil, false return nil, false
end end
@ -981,7 +981,7 @@ function phrase_action(self)
error ("Error while eval phrase action."); error ("Error while eval phrase action.");
end end
elseif type(ph.do_act) == 'function' then elseif type(ph.do_act) == 'function' then
ret = ph.do_act(self, nam); ret = ph.do_act(self);
end end
local last = call(ph, 'ans'); local last = call(ph, 'ans');
if last == true or ret == true then if last == true or ret == true then