fixed assert in piece_picker

This commit is contained in:
Arvid Norberg 2008-10-18 22:29:56 +00:00
parent 872956e3f4
commit d0fc5fee2b
1 changed files with 1 additions and 1 deletions

View File

@ -1129,7 +1129,7 @@ namespace libtorrent
if (new_piece_priority == int(p.piece_priority)) return false; if (new_piece_priority == int(p.piece_priority)) return false;
int prev_priority = p.priority(this); int prev_priority = p.priority(this);
TORRENT_ASSERT(m_dirty | prev_priority < int(m_priority_boundries.size())); TORRENT_ASSERT(m_dirty || prev_priority < int(m_priority_boundries.size()));
bool ret = false; bool ret = false;
if (new_piece_priority == piece_pos::filter_priority if (new_piece_priority == piece_pos::filter_priority