diff --git a/code/ryzom/client/src/network_connection.cpp b/code/ryzom/client/src/network_connection.cpp index 730cb3477..133f92af1 100644 --- a/code/ryzom/client/src/network_connection.cpp +++ b/code/ryzom/client/src/network_connection.cpp @@ -2976,7 +2976,15 @@ void CNetworkConnection::reinit() // Reuse the udp socket _Connection.~CUdpSimSock(); + +#ifdef new +#undef new +#endif new (&_Connection) CUdpSimSock(); + +#ifdef DEBUG_NEW +#define new DEBUG_NEW +#endif } // sends system sync acknowledge