fix for pad-files

This commit is contained in:
Arvid Norberg 2011-07-12 08:53:20 +00:00
parent d13335ba14
commit 40fb16b703
1 changed files with 2 additions and 0 deletions

View File

@ -994,6 +994,8 @@ ret:
++file_iter;
if (file_iter == files().end())
return size_type(slot) * files().piece_length() + offset;
// update offset as well, since we're moving it up ahead
tor_off = file_iter->offset;
}
TORRENT_ASSERT(!file_iter->pad_file);