another map_block fix

This commit is contained in:
Arvid Norberg 2009-01-14 07:39:02 +00:00
parent 63add6c725
commit 692c3cd6f8
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ namespace libtorrent
TORRENT_ASSERT(file_iter != begin());
--file_iter;
size_type file_offset = offset - file_iter->offset;
size_type file_offset = target.offset - file_iter->offset;
for (; size > 0; file_offset -= file_iter->size, ++file_iter)
{
TORRENT_ASSERT(file_iter != end());