From be4f593ddfd7d15330002191cdcd73318c51677d Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 13 Mar 2011 08:07:33 +0000 Subject: [PATCH] fix warning --- src/peer_connection.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index e9847c80e..448e3fe2b 100644 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -2182,8 +2182,7 @@ namespace libtorrent TORRENT_ASSERT(m_disk_recv_buffer_size == 0); // we're not receiving any block right now - m_receiving_block.piece_index = -1; - m_receiving_block.block_index = -1; + m_receiving_block = piece_block::invalid; #ifdef TORRENT_CORRUPT_DATA // corrupt all pieces from certain peers