diff options
Diffstat (limited to 'src/net/manaserv/connection.cpp')
-rw-r--r-- | src/net/manaserv/connection.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/manaserv/connection.cpp b/src/net/manaserv/connection.cpp index 98076c8a..fbd2ed22 100644 --- a/src/net/manaserv/connection.cpp +++ b/src/net/manaserv/connection.cpp @@ -60,7 +60,11 @@ bool Connection::connect(const std::string &address, short port) enetAddress.port = port; // Initiate the connection, allocating channel 0. +#ifdef ENET_VERSION_MAJOR + mConnection = enet_host_connect(mClient, &enetAddress, 1, 0); +#else mConnection = enet_host_connect(mClient, &enetAddress, 1); +#endif if (!mConnection) { |