summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-04-04 13:09:36 +0000
committerrubidium <rubidium@openttd.org>2009-04-04 13:09:36 +0000
commitedfc2e536e2a2eb82e83076de49d7807a88e5894 (patch)
tree9141ce6b50a9364f523112587c44f7592d8071d4 /src
parent171f98d52374008fc35c9dcc9808444884f30b6b (diff)
downloadopenttd-edfc2e536e2a2eb82e83076de49d7807a88e5894.tar.xz
(svn r15954) -Fix: comparing addresses kinda fails (sometimes) causing duplicates in the game list
Diffstat (limited to 'src')
-rw-r--r--src/network/core/address.h2
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;
}