Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix issue #2278, Connection sent before address data loading
  • Loading branch information
nerzhul committed Feb 14, 2015
1 parent 7880ff7 commit 346652a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions builtin/mainmenu/tab_multiplayer.lua
Expand Up @@ -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"]
Expand Down

0 comments on commit 346652a

Please sign in to comment.