diff --git a/src/steamnetworkingsockets/clientlib/steamnetworkingsockets_ice_client.cpp b/src/steamnetworkingsockets/clientlib/steamnetworkingsockets_ice_client.cpp index 81cfaee..edf4201 100644 --- a/src/steamnetworkingsockets/clientlib/steamnetworkingsockets_ice_client.cpp +++ b/src/steamnetworkingsockets/clientlib/steamnetworkingsockets_ice_client.cpp @@ -1392,7 +1392,7 @@ void CSteamNetworkingICESession::GatherInterfaces() // the list was empty). for ( const LocalAddress_t &addr: vecAddrs ) { - std::unique_ptr pIntf = std::make_unique( *this, uNextPriority, addr.m_nPrefixLen ); + std::unique_ptr pIntf( new ICESessionInterface( *this, uNextPriority, addr.m_nPrefixLen ) ); SteamDatagramErrMsg errMsg; SteamNetworkingIPAddr bindAddr = addr.m_addr; pIntf->m_pSocket = OpenRawUDPSocket( CRecvPacketCallback( CSteamNetworkingICESession::StaticPacketReceived, pIntf.get() ), errMsg, &bindAddr, nullptr );