Fix ENet incorrectly binding to wildcard.

Values were not properly initialized, and wildcard would evaluate to
true in most cases.
This commit is contained in:
Fabio Alessandrelli 2019-06-15 05:55:41 +02:00
parent 40f2480d0e
commit abe2c22966

View File

@ -80,6 +80,7 @@ Error NetworkedMultiplayerENet::create_server(int p_port, int p_max_clients, int
ERR_FAIL_COND_V(p_out_bandwidth < 0, ERR_INVALID_PARAMETER);
ENetAddress address;
memset(&address, 0, sizeof(address));
#ifdef GODOT_ENET
if (bind_ip.is_wildcard()) {