From edfc2e536e2a2eb82e83076de49d7807a88e5894 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 4 Apr 2009 13:09:36 +0000 Subject: (svn r15954) -Fix: comparing addresses kinda fails (sometimes) causing duplicates in the game list --- src/network/core/address.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/network/core/address.h b/src/network/core/address.h index 1bec20a27..ecb3a8f22 100644 --- a/src/network/core/address.h +++ b/src/network/core/address.h @@ -175,7 +175,7 @@ public: { int r = this->GetAddressLength() - address.GetAddressLength(); if (r == 0) r = this->address.ss_family - address.address.ss_family; - if (r == 0) r = memcmp(&this->address, &address.address, this->address_length) == 0; + if (r == 0) r = memcmp(&this->address, &address.address, this->address_length); if (r == 0) r = this->GetPort() - address.GetPort(); return r; } -- cgit v1.2.3-70-g09d2