This commit is contained in:
Arvid Norberg 2012-01-27 06:21:19 +00:00
parent 7741b732de
commit 5d13327fb0
1 changed files with 1 additions and 1 deletions

View File

@ -3870,7 +3870,7 @@ namespace libtorrent
for (file_storage::iterator i = m_torrent_file->files().begin() for (file_storage::iterator i = m_torrent_file->files().begin()
, end(m_torrent_file->files().end()); i != end; ++i, ++index) , end(m_torrent_file->files().end()); i != end; ++i, ++index)
{ {
if (i >= m_torrent_file->num_files()) break; if (index >= m_torrent_file->num_files()) break;
size_type start = position; size_type start = position;
size_type size = m_torrent_file->files().file_size(*i); size_type size = m_torrent_file->files().file_size(*i);
if (size == 0) continue; if (size == 0) continue;