From 7dbbbfc665e285cc9eb9d750c3a449d7da178d4f Mon Sep 17 00:00:00 2001 From: sapier Date: Fri, 12 Jul 2013 20:43:51 +0200 Subject: [PATCH] Fix serverdescription and name not beeing saved to local serverlist --- builtin/mainmenu.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/builtin/mainmenu.lua b/builtin/mainmenu.lua index b752add6..ee331611 100644 --- a/builtin/mainmenu.lua +++ b/builtin/mainmenu.lua @@ -642,6 +642,11 @@ function tabbuilder.handle_multiplayer_buttons(fields) gamedata.serverdescription = menu.favorites[event.index].description end + if menu.favorites ~= nil then + gamedata.servername = menu.favorites[event.index].name + gamedata.serverdescription = menu.favorites[event.index].description + end + if gamedata.address ~= nil and gamedata.port ~= nil then -- 2.30.2