From a60b6f9e9670332377a8257cc38bad64938554df Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 21 Jun 2008 15:51:03 +0000 Subject: [PATCH] fixed bug in set_queue_position. Fixes #353 --- src/torrent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/torrent.cpp b/src/torrent.cpp index 871e31c42..7ab14e12c 100755 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -3420,7 +3420,7 @@ namespace libtorrent session_impl::torrent_map& torrents = m_ses.m_torrents; if (p >= 0 && m_sequence_number == -1) { - int max_seq = 0; + int max_seq = -1; for (session_impl::torrent_map::iterator i = torrents.begin() , end(torrents.end()); i != end; ++i) {