fix in menu
This commit is contained in:
parent
30c240bda1
commit
784ffc933e
|
@ -100,9 +100,13 @@ function menu(v)
|
||||||
v.menu_type = true
|
v.menu_type = true
|
||||||
if v.inv == nil then
|
if v.inv == nil then
|
||||||
v.inv = function(s)
|
v.inv = function(s)
|
||||||
call(s, 'menu');
|
local r
|
||||||
|
r = call(s, 'menu');
|
||||||
|
if r == nil then
|
||||||
obj_tag(me(), MENU_TAG_ID); -- retag menu field
|
obj_tag(me(), MENU_TAG_ID); -- retag menu field
|
||||||
end
|
end
|
||||||
|
return r, true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
if v.save == nil then
|
if v.save == nil then
|
||||||
v.save = menu_save;
|
v.save = menu_save;
|
||||||
|
|
Loading…
Reference in a new issue