Fix reconnect command

This fixes #160
This commit is contained in:
Maurice Heumann 2023-03-06 18:42:52 +01:00
parent 551bfdea50
commit 39bb77b780

View File

@ -183,14 +183,18 @@ namespace party
void connect_stub(const char* address)
{
const auto target = network::address_from_string(address);
if (target.type == game::NA_BAD)
if (address)
{
return;
const auto target = network::address_from_string(address);
if (target.type == game::NA_BAD)
{
return;
}
connect_host = target;
}
connect_host = target;
query_server(target, handle_connect_query_response);
query_server(connect_host, handle_connect_query_response);
}
void send_server_query(server_query& query)