Skip to content

Commit 346652a

Browse files
committedFeb 14, 2015
Fix issue #2278, Connection sent before address data loading
1 parent 7880ff7 commit 346652a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

Diff for: ‎builtin/mainmenu/tab_multiplayer.lua

+3-2
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,9 @@ local function main_button_handler(tabview, fields, name, tabdata)
198198
return true
199199
end
200200

201-
if fields["btn_mp_connect"] ~= nil or
202-
fields["key_enter"] ~= nil then
201+
if (fields["btn_mp_connect"] ~= nil or
202+
fields["key_enter"] ~= nil) and fields["te_address"] ~= nil and
203+
fields["te_port"] ~= nil then
203204

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

0 commit comments

Comments
 (0)
Please sign in to comment.