summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-06-15 10:28:49 +0200
committerGitHub <noreply@github.com>2019-06-15 10:28:49 +0200
commit63b8c00d555e532f3649639f808f3740eb185df1 (patch)
tree3fbea808a97fff64ca41d33def991e9d4588ded4
parent1c1e75a4aa58faf5778a1469ecfd7cb141f1bcdd (diff)
parentabe2c22966b9ac1abbd2c0386e78922d901ce8ae (diff)
Merge pull request #29793 from Faless/enet/bind
Fix ENet incorrectly binding to wildcard.
-rw-r--r--modules/enet/networked_multiplayer_enet.cpp1
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()) {