Skip to content
Permalink
Browse files

Fix issue #2278, Connection sent before address data loading

  • Loading branch information...
nerzhul committed Feb 14, 2015
1 parent 7880ff7 commit 346652a80986d13fdf83705c8cf41ccdeee3f2b9
Showing with 3 additions and 2 deletions.
  1. +3 −2 builtin/mainmenu/tab_multiplayer.lua
@@ -198,8 +198,9 @@ local function main_button_handler(tabview, fields, name, tabdata)
return true
end

if fields["btn_mp_connect"] ~= nil or
fields["key_enter"] ~= nil then
if (fields["btn_mp_connect"] ~= nil or
fields["key_enter"] ~= nil) and fields["te_address"] ~= nil and
fields["te_port"] ~= nil then

gamedata.playername = fields["te_name"]
gamedata.password = fields["te_pwd"]

0 comments on commit 346652a

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