fixed assert in piece_picker

This commit is contained in:
Arvid Norberg 2008-09-19 06:46:58 +00:00
parent e85cb90652
commit fbec4261cd
1 changed files with 1 additions and 0 deletions

View File

@ -1540,6 +1540,7 @@ namespace libtorrent
, end(m_downloads.end()); i != end; ++i)
{
if (!pieces[i->index]) continue;
if (piece_priority(i->index) == 0) continue;
int num_blocks_in_piece = blocks_in_piece(i->index);
for (int j = 0; j < num_blocks_in_piece; ++j)