(svn r26056) -Fix: a number of possibly uninitialised variables

This commit is contained in:
rubidium
2013-11-22 21:50:43 +00:00
parent bdd62a4b3e
commit 2e54c8fdfa
6 changed files with 13 additions and 9 deletions

View File

@@ -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;
}
/**