diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2019-06-15 05:55:41 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2019-06-15 05:59:50 +0200 |
commit | abe2c22966b9ac1abbd2c0386e78922d901ce8ae (patch) | |
tree | 2fc95111626154520416ddb14ae2ed0e745c5c84 | |
parent | 40f2480d0e0330a5444c04094632765b640546c8 (diff) |
Fix ENet incorrectly binding to wildcard.
Values were not properly initialized, and wildcard would evaluate to
true in most cases.
-rw-r--r-- | modules/enet/networked_multiplayer_enet.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/enet/networked_multiplayer_enet.cpp b/modules/enet/networked_multiplayer_enet.cpp index 1ff0395ba9..dcb4b7fd75 100644 --- a/modules/enet/networked_multiplayer_enet.cpp +++ b/modules/enet/networked_multiplayer_enet.cpp @@ -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()) { |