diff options
author | rubidium <rubidium@openttd.org> | 2009-01-14 12:50:13 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-14 12:50:13 +0000 |
commit | e18c24cdb5c2031cad7813c7de5f2554428ada43 (patch) | |
tree | 7bf6232afadc77f8198fdad1571c68a85647afbf /src/network/core/core.h | |
parent | 6fe54a2d1a06b1d55cd649919785af6f4890f9da (diff) | |
download | openttd-e18c24cdb5c2031cad7813c7de5f2554428ada43.tar.xz |
(svn r15079) -Codechange: split tcp 'backend' and in-game handling like it is for UDP.
Diffstat (limited to 'src/network/core/core.h')
-rw-r--r-- | src/network/core/core.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/core/core.h b/src/network/core/core.h index 272d44adc..c1605d46d 100644 --- a/src/network/core/core.h +++ b/src/network/core/core.h @@ -43,7 +43,7 @@ public: SOCKET sock; ///< The socket currently connected to public: /** Create a new unbound socket */ - NetworkSocketHandler() { this->sock = INVALID_SOCKET; this->has_quit = false; } + NetworkSocketHandler(SOCKET s = INVALID_SOCKET) { this->sock = s; this->has_quit = false; } /** Close the socket when distructing the socket handler */ virtual ~NetworkSocketHandler() { this->Close(); } |