Fix serverdescription and name not beeing saved to local serverlist

This commit is contained in:
sapier 2013-07-12 20:43:51 +02:00 committed by Nils Dagsson Moskopp
parent cc9155334d
commit afba78a47f
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 5 additions and 0 deletions

View File

@ -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