diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/connection.cpp | 4 | ||||
-rw-r--r-- | src/net/connectionhandler.cpp | 2 |
2 files changed, 3 insertions, 3 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 */); diff --git a/src/net/connectionhandler.cpp b/src/net/connectionhandler.cpp index d116aa9..f1bcf5f 100644 --- a/src/net/connectionhandler.cpp +++ b/src/net/connectionhandler.cpp @@ -145,7 +145,7 @@ void ConnectionHandler::process(enet_uint32 timeout) // Reset the peer's client information. computerDisconnected(comp); clients.erase(std::find(clients.begin(), clients.end(), comp)); - event.peer->data = NULL; + event.peer->data = nullptr; } break; default: break; |