# HG changeset patch # User rubidium # Date 2009-01-21 20:18:12 # Node ID 933295e5181c97124a7e416e46187fd4374e8175 # Parent f5bbffcfa3ae88310fdbcbf5f83ab4610d16509e (svn r15196) -Fix (r15195): != != == :( diff --git a/src/network/network_content.cpp b/src/network/network_content.cpp --- a/src/network/network_content.cpp +++ b/src/network/network_content.cpp @@ -753,7 +753,7 @@ void ClientNetworkContentSocketHandler:: 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:: 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:: 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:: 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:: 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++; } }