[-] Fixed compilation

This commit is contained in:
cybermind 2013-08-08 11:07:26 +06:00
parent 15e7a02002
commit 9a975a6304

View file

@ -69,7 +69,7 @@ bool CHost::isValid() const
class CUDPSocket_Impl
{
public:
CUDPSocket_Impl() : socket(Socket(-1) {}
CUDPSocket_Impl() : socket(Socket(-1)) {}
~CUDPSocket_Impl() { if (IsValid()) { Close(); } }
bool Open(const CHost &host) { socket = NetOpenUDP(host.getIp(), host.getPort()); return socket != INVALID_SOCKET; }
void Close() { NetCloseUDP(socket); socket = Socket(-1); }