fix resume data bug introduced when deprecating the iterators from file_storage
This commit is contained in:
parent
4ac6264487
commit
ea0aa72cce
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue