1
0
Fork 0

(svn r15954) -Fix: comparing addresses kinda fails (sometimes) causing duplicates in the game list

release/1.0
rubidium 2009-04-04 13:09:36 +00:00
parent 171f98d523
commit edfc2e536e
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}