fix resume data bug introduced when deprecating the iterators from file_storage

This commit is contained in:
Arvid Norberg 2013-11-07 06:54:56 +00:00
parent 4ac6264487
commit ea0aa72cce
1 changed files with 1 additions and 1 deletions

View File

@ -728,7 +728,7 @@ namespace libtorrent
fs = file_sizes.begin();
// the resume data says we have the entire torrent
// make sure the file sizes are the right ones
for (int i = 0; i < files().num_files(); ++i)
for (int i = 0; i < files().num_files(); ++i, ++fs)
{
if (!files().pad_file_at(i) && files().file_size(i) != fs->first)
{