* Fixed menu cache

This commit is contained in:
Steven Barth 2008-05-05 19:59:57 +00:00
parent decdaf6736
commit 1b65106ac8

View file

@ -43,7 +43,7 @@ scope = {
} }
-- Local menu database -- Local menu database
local menu = {} local menu = nil
-- The current pointer -- The current pointer
local menuc = {} local menuc = {}
@ -119,6 +119,7 @@ end
-- Returns the menu information -- Returns the menu information
function get() function get()
if not menu then if not menu then
menu = {}
collect() collect()
end end
return menu return menu