diff --git a/include/libtorrent/bandwidth_manager.hpp b/include/libtorrent/bandwidth_manager.hpp index f4a01665f..a83ba27f8 100644 --- a/include/libtorrent/bandwidth_manager.hpp +++ b/include/libtorrent/bandwidth_manager.hpp @@ -253,7 +253,7 @@ struct bandwidth_manager , end(m_queue.end()); i != end && j != end; ++i, ++j) { TORRENT_ASSERT(i->priority >= j->priority); - bytes += i->max_block_size; + bytes += j->max_block_size; } } TORRENT_ASSERT(bytes == m_queued_bytes);