From 5d13327fb0cecce214c89bcd0ed8e049f814f565 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 27 Jan 2012 06:21:19 +0000 Subject: [PATCH] fix typo --- src/torrent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/torrent.cpp b/src/torrent.cpp index 63284c058..f13d85153 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -3870,7 +3870,7 @@ namespace libtorrent for (file_storage::iterator i = m_torrent_file->files().begin() , 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 size = m_torrent_file->files().file_size(*i); if (size == 0) continue;