return vector of correct size if internal file_progress is empty

This commit is contained in:
Alden Torres 2017-01-18 16:18:22 -05:00 committed by Arvid Norberg
parent 393e705d5c
commit 8cc88a8921
1 changed files with 1 additions and 1 deletions

View File

@ -10220,7 +10220,7 @@ namespace libtorrent
return;
}
if (num_have() == 0)
if (num_have() == 0 || m_file_progress.empty())
{
// if we don't have any pieces, just return zeroes
fp.clear();