Skip to content

Commit

Permalink
Fix serverdescription and name not beeing saved to local serverlist
Browse files Browse the repository at this point in the history
  • Loading branch information
sapier authored and PilzAdam committed Jul 12, 2013
1 parent ac7a447 commit 7dbbbfc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions builtin/mainmenu.lua
Expand Up @@ -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

Expand Down

0 comments on commit 7dbbbfc

Please sign in to comment.