summaryrefslogtreecommitdiff
path: root/src/network/core/core.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-14 12:50:13 +0000
committerrubidium <rubidium@openttd.org>2009-01-14 12:50:13 +0000
commite18c24cdb5c2031cad7813c7de5f2554428ada43 (patch)
tree7bf6232afadc77f8198fdad1571c68a85647afbf /src/network/core/core.h
parent6fe54a2d1a06b1d55cd649919785af6f4890f9da (diff)
downloadopenttd-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.h2
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(); }