fixed bug in set_queue_position. Fixes #353

This commit is contained in:
Arvid Norberg 2008-06-21 15:51:03 +00:00
parent 0f0ea269bc
commit a60b6f9e96
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{