diff options
author | rubidium <rubidium@openttd.org> | 2009-04-04 13:09:36 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-04-04 13:09:36 +0000 |
commit | edfc2e536e2a2eb82e83076de49d7807a88e5894 (patch) | |
tree | 9141ce6b50a9364f523112587c44f7592d8071d4 | |
parent | 171f98d52374008fc35c9dcc9808444884f30b6b (diff) | |
download | openttd-edfc2e536e2a2eb82e83076de49d7807a88e5894.tar.xz |
(svn r15954) -Fix: comparing addresses kinda fails (sometimes) causing duplicates in the game list
-rw-r--r-- | src/network/core/address.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |