summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--menu.lua1
1 files changed, 1 insertions, 0 deletions
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