diff options
-rw-r--r-- | builtin/mainmenu/tab_multiplayer.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/builtin/mainmenu/tab_multiplayer.lua b/builtin/mainmenu/tab_multiplayer.lua index d2d87274e..c3a7d921e 100644 --- a/builtin/mainmenu/tab_multiplayer.lua +++ b/builtin/mainmenu/tab_multiplayer.lua @@ -138,6 +138,12 @@ local function main_button_handler(tabview, fields, name, tabdata) else fav_idx = 1 end + + if menudata.favorites == nil or + menudata.favorites[fav_idx] == nil then + tabdata.fav_selected = 0 + return true + end local address = menudata.favorites[fav_idx].address local port = menudata.favorites[fav_idx].port |