diff options
Diffstat (limited to 'src/net/connection.cpp')
-rw-r--r-- | src/net/connection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/connection.cpp b/src/net/connection.cpp index 88c59f0..c54c0db 100644 --- a/src/net/connection.cpp +++ b/src/net/connection.cpp @@ -43,13 +43,13 @@ bool Connection::start(const std::string &address, int port) enetAddress.port = port; #if defined(ENET_VERSION) && ENET_VERSION >= ENET_CUTOFF - mLocal = enet_host_create(NULL /* create a client host */, + mLocal = enet_host_create(nullptr /* create a client host */, 1 /* allow one outgoing connection */, 0 /* unlimited channel count */, 0 /* assume any amount of incoming bandwidth */, 0 /* assume any amount of outgoing bandwidth */); #else - mLocal = enet_host_create(NULL /* create a client host */, + mLocal = enet_host_create(nullptr /* create a client host */, 1 /* allow one outgoing connection */, 0 /* assume any amount of incoming bandwidth */, 0 /* assume any amount of outgoing bandwidth */); |