You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-20 14:45:44 +00:00
Replace ERR_FAIL_COND with ERR_FAIL_NULL where applicable
This commit is contained in:
2
thirdparty/enet/godot.cpp
vendored
2
thirdparty/enet/godot.cpp
vendored
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user