diff options
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_content.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/network/network_content.cpp b/src/network/network_content.cpp index 8c038796f..54798f4b7 100644 --- a/src/network/network_content.cpp +++ b/src/network/network_content.cpp @@ -794,10 +794,9 @@ void ClientNetworkContentSocketHandler::SendReceive() void ClientNetworkContentSocketHandler::DownloadContentInfo(ContentID cid) { /* When we tried to download it already, don't try again */ - if (this->requested.Contains(cid)) return; + if (std::find(this->requested.begin(), this->requested.end(), cid) != this->requested.end()) return; - *this->requested.Append() = cid; - assert(this->requested.Contains(cid)); + this->requested.push_back(cid); this->RequestContentList(1, &cid); } |