summaryrefslogtreecommitdiff
path: root/src/network/network_content.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-21 20:18:12 +0000
committerrubidium <rubidium@openttd.org>2009-01-21 20:18:12 +0000
commit86c1d49c0831c6caafe6a67279d8f20d8ed9fa41 (patch)
tree91d120ebf4768e3fd984299d4de2f54493cf1280 /src/network/network_content.cpp
parent4bf2326bd1cbcd5b51c39376c8da9802edbf9e07 (diff)
downloadopenttd-86c1d49c0831c6caafe6a67279d8f20d8ed9fa41.tar.xz
(svn r15196) -Fix (r15195): != != == :(
Diffstat (limited to 'src/network/network_content.cpp')
-rw-r--r--src/network/network_content.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/network/network_content.cpp b/src/network/network_content.cpp
index f0521f0b5..c263f0ce5 100644
--- a/src/network/network_content.cpp
+++ b/src/network/network_content.cpp
@@ -753,7 +753,7 @@ void ClientNetworkContentSocketHandler::OnConnect(bool success)
for (ContentCallback **iter = this->callbacks.Begin(); iter != this->callbacks.End(); /* nothing */) {
ContentCallback *cb = *iter;
cb->OnConnect(success);
- if (*iter != cb) iter++;
+ if (*iter == cb) iter++;
}
}
@@ -762,7 +762,7 @@ void ClientNetworkContentSocketHandler::OnDisconnect()
for (ContentCallback **iter = this->callbacks.Begin(); iter != this->callbacks.End(); /* nothing */) {
ContentCallback *cb = *iter;
cb->OnDisconnect();
- if (*iter != cb) iter++;
+ if (*iter == cb) iter++;
}
}
@@ -771,7 +771,7 @@ void ClientNetworkContentSocketHandler::OnReceiveContentInfo(const ContentInfo *
for (ContentCallback **iter = this->callbacks.Begin(); iter != this->callbacks.End(); /* nothing */) {
ContentCallback *cb = *iter;
cb->OnReceiveContentInfo(ci);
- if (*iter != cb) iter++;
+ if (*iter == cb) iter++;
}
}
@@ -780,7 +780,7 @@ void ClientNetworkContentSocketHandler::OnDownloadProgress(const ContentInfo *ci
for (ContentCallback **iter = this->callbacks.Begin(); iter != this->callbacks.End(); /* nothing */) {
ContentCallback *cb = *iter;
cb->OnDownloadProgress(ci, bytes);
- if (*iter != cb) iter++;
+ if (*iter == cb) iter++;
}
}
@@ -794,7 +794,7 @@ void ClientNetworkContentSocketHandler::OnDownloadComplete(ContentID cid)
for (ContentCallback **iter = this->callbacks.Begin(); iter != this->callbacks.End(); /* nothing */) {
ContentCallback *cb = *iter;
cb->OnDownloadComplete(cid);
- if (*iter != cb) iter++;
+ if (*iter == cb) iter++;
}
}