fixed crash bug in storage

This commit is contained in:
Arvid Norberg 2008-02-22 06:09:30 +00:00
parent 5259d827b6
commit 682a5f85f9
1 changed files with 1 additions and 1 deletions

View File

@ -1256,7 +1256,7 @@ namespace libtorrent
m_slot_to_piece.begin();
i != last.base(); ++i)
{
p.push_back(have[*i] ? *i : unassigned);
p.push_back((*i >= 0 && have[*i]) ? *i : unassigned);
}
}
else