* Fixed menu cache
authorSteven Barth <steven@midlink.org>
Mon, 5 May 2008 19:59:57 +0000 (19:59 +0000)
committerSteven Barth <steven@midlink.org>
Mon, 5 May 2008 19:59:57 +0000 (19:59 +0000)
core/src/ffluci/menu.lua

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