summaryrefslogtreecommitdiffstats
path: root/thirdparty/enet
diff options
context:
space:
mode:
authorA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2023-09-28 11:40:18 +0200
committerA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2023-10-08 17:23:33 +0200
commitf18aa00e8505439c1afc3dc0eb309429a88cf4de (patch)
treef62c7b1314ea19468e1f379ebde52938e4dbefd9 /thirdparty/enet
parent6916349697a4339216469e9bf5899b983d78db07 (diff)
downloadredot-engine-f18aa00e8505439c1afc3dc0eb309429a88cf4de.tar.gz
Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
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);
}