From 8f308ef881821e5b482974412cb243602a2474b1 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 14 Dec 2008 22:59:47 +0000 Subject: [PATCH] fixed invariant checks in bandiwdth_manager --- include/libtorrent/bandwidth_manager.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);