mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 10:20:26 +01:00
GameAgent - list servers bugfix (update)
This commit is contained in:
parent
eeebba11dc
commit
dd0ad84385
|
@ -163,6 +163,9 @@ void _initializeWinsock(void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_wsaData = new WSADATA;
|
||||||
|
_socket = INVALID_SOCKET;
|
||||||
|
|
||||||
// start WSA
|
// start WSA
|
||||||
if(WSAStartup(MAKEWORD(2, 2), _wsaData) != 0) {
|
if(WSAStartup(MAKEWORD(2, 2), _wsaData) != 0) {
|
||||||
CPrintF("Error initializing winsock!\n");
|
CPrintF("Error initializing winsock!\n");
|
||||||
|
@ -171,9 +174,6 @@ void _initializeWinsock(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
_wsaData = new WSADATA;
|
|
||||||
_socket = INVALID_SOCKET;
|
|
||||||
|
|
||||||
// make the buffer that we'll use for packet reading
|
// make the buffer that we'll use for packet reading
|
||||||
if(_szBuffer != NULL) {
|
if(_szBuffer != NULL) {
|
||||||
delete[] _szBuffer;
|
delete[] _szBuffer;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user