Changeset - r11579:997fbf83d583
[Not reviewed]
master
0 1 0
rubidium - 16 years ago 2009-04-04 13:09:36
rubidium@openttd.org
(svn r15954) -Fix: comparing addresses kinda fails (sometimes) causing duplicates in the game list
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/network/core/address.h
Show inline comments
 
@@ -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;
 
	}
0 comments (0 inline, 0 general)