Skip to content
Snippets Groups Projects
Commit 346652a8 authored by Loïc Blot's avatar Loïc Blot
Browse files

Fix issue #2278, Connection sent before address data loading

parent 7880ff74
No related branches found
No related tags found
No related merge requests found
......@@ -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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment