summaryrefslogtreecommitdiffstats
path: root/thirdparty/enet
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/enet')
-rw-r--r--thirdparty/enet/godot.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/thirdparty/enet/godot.cpp b/thirdparty/enet/godot.cpp
index 37239e8462..ecf0a7e6dd 100644
--- a/thirdparty/enet/godot.cpp
+++ b/thirdparty/enet/godot.cpp
@@ -458,7 +458,7 @@ int enet_host_dtls_client_setup(ENetHost *host, const char *p_for_hostname, void
}
void enet_host_refuse_new_connections(ENetHost *host, int p_refuse) {
- ERR_FAIL_COND(!host->socket);
+ ERR_FAIL_NULL(host->socket);
((ENetGodotSocket *)host->socket)->set_refuse_new_connections(p_refuse);
}