From bf9ad0478e6b72f0e19af9cb7e65337521721e77 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 24 Aug 2016 05:32:21 +0200 Subject: reset active element --- menu.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/menu.lua b/menu.lua index 95e764b..206c45e 100644 --- a/menu.lua +++ b/menu.lua @@ -26,6 +26,7 @@ function Menu:delete() end function Menu:load(name) local name = "config/" .. (name or "menumain") .. ".lua" local menu = love.filesystem.load(name) + self.active = 1 self.elements = menu(self) self.elements[self.active]:focus() end -- cgit v1.1