1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 01:27:28 +00:00

maybe fix the forced-recheck-on-startup bug that pea_, John_Clay, and Gimp_ reported over the last two days

This commit is contained in:
Charles Kerr 2008-06-11 02:19:40 +00:00
parent 9776f10c65
commit bc26bcb705

View file

@ -228,7 +228,7 @@ tr_cpBlockBitfieldSet( tr_completion * cp, tr_bitfield * bitfield )
assert( bitfield );
assert( cp->blockBitfield );
if( !cp || !tr_bitfieldTestFast( bitfield, cp->tor->blockCount ) )
if( !tr_bitfieldTestFast( bitfield, cp->tor->blockCount-1 ) )
return TR_ERROR_ASSERT;
tr_cpReset( cp );