summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-10-16 20:34:43 +0000
committerfrosch <frosch@openttd.org>2010-10-16 20:34:43 +0000
commit98250ad8da83fe6f842437bb614df28a1fe217c6 (patch)
treebfa52c0de54fa6c0a8c46d8b576555408ebcdc68 /src/network
parent82d4ffacff3398b44b2b16466f1305d607f0f57f (diff)
downloadopenttd-98250ad8da83fe6f842437bb614df28a1fe217c6.tar.xz
(svn r20951) -Codechange: Add SmallMap::Contains() and use it.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/core/address.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/core/address.cpp b/src/network/core/address.cpp
index 586ee863a..57edf50cb 100644
--- a/src/network/core/address.cpp
+++ b/src/network/core/address.cpp
@@ -212,7 +212,7 @@ SOCKET NetworkAddress::Resolve(int family, int socktype, int flags, SocketList *
* ofcourse totally unneeded ;) */
if (sockets != NULL) {
NetworkAddress address(runp->ai_addr, (int)runp->ai_addrlen);
- if (sockets->Find(address) != sockets->End()) continue;
+ if (sockets->Contains(address)) continue;
}
sock = func(runp);
if (sock == INVALID_SOCKET) continue;