Skip to content
Permalink
Browse files

Fix menu crash due to lack of favourites list

  • Loading branch information...
sapier sapier
sapier authored and sapier committed Jun 22, 2014
1 parent 9056c16 commit 2625323f25ebb4e9ab1079ff60a77b40f58c5bf9
Showing with 6 additions and 0 deletions.
  1. +6 −0 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

0 comments on commit 2625323

Please sign in to comment.
You can’t perform that action at this time.