From 8ad96111238c2b49e4b91ec6f42b84292a403184 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Andr=C3=A9=20Santoni?= Date: Tue, 24 Aug 2021 12:23:01 +0700 Subject: [PATCH] More fixes --- menu/scene_home.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/menu/scene_home.go b/menu/scene_home.go index a17af391..d95a7865 100644 --- a/menu/scene_home.go +++ b/menu/scene_home.go @@ -214,6 +214,12 @@ func (s *sceneHome) segueNext() { } func (s *sceneHome) update(dt float32) { + // Empty state + if len(s.children) == 0 { + menu.focus-- + return + } + // Right repeatRight(dt, input.NewState[0][libretro.DeviceIDJoypadRight] == 1, func() { if s.xptrs[s.yptr] < len(s.children[s.yptr].children)-1 {