summaryrefslogtreecommitdiff
path: root/src/network/core/tcp_game.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-11-22 21:50:43 +0000
committerrubidium <rubidium@openttd.org>2013-11-22 21:50:43 +0000
commit2e54c8fdfa237f84e8d48b30bf4811ba7ed84327 (patch)
tree7ce2441341e514ccc4225d692f5c8d64b881e75c /src/network/core/tcp_game.cpp
parentbdd62a4b3e3df6282122a7c4353e6fef632f9c32 (diff)
downloadopenttd-2e54c8fdfa237f84e8d48b30bf4811ba7ed84327.tar.xz
(svn r26056) -Fix: a number of possibly uninitialised variables
Diffstat (limited to 'src/network/core/tcp_game.cpp')
-rw-r--r--src/network/core/tcp_game.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/network/core/tcp_game.cpp b/src/network/core/tcp_game.cpp
index 711d6a2b7..54d222495 100644
--- a/src/network/core/tcp_game.cpp
+++ b/src/network/core/tcp_game.cpp
@@ -26,12 +26,10 @@
* Create a new socket for the game connection.
* @param s The socket to connect with.
*/
-NetworkGameSocketHandler::NetworkGameSocketHandler(SOCKET s)
+NetworkGameSocketHandler::NetworkGameSocketHandler(SOCKET s) : info(NULL),
+ last_frame(_frame_counter), last_frame_server(_frame_counter), last_packet(_realtime_tick)
{
- this->sock = s;
- this->last_frame = _frame_counter;
- this->last_frame_server = _frame_counter;
- this->last_packet = _realtime_tick;
+ this->sock = s;
}
/**