Mercurial > hg > openttd
changeset 11584:585522fd048e draft
(svn r15954) -Fix: comparing addresses kinda fails (sometimes) causing duplicates in the game list
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sat, 04 Apr 2009 13:09:36 +0000 |
parents | 7d0c794b3c1e |
children | a5688eed8d7a |
files | src/network/core/address.h |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/network/core/address.h +++ b/src/network/core/address.h @@ -175,7 +175,7 @@ { 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; }