Core/Bitset: Fix Bitset::FindNext

Former-commit-id: 20d18be6e8039fc386ef7c402878b3d29577b46d
This commit is contained in:
Lynix 2015-06-22 14:27:42 +02:00
parent 109af2a581
commit 179f30861d
1 changed files with 2 additions and 1 deletions

View File

@ -104,7 +104,8 @@ unsigned int NzBitset<Block, Allocator>::FindNext(unsigned int bit) const
{
NazaraAssert(bit < m_bitCount, "Bit index out of range");
bit++;
if (++bit >= m_bitCount)
return npos;
// Le bloc du bit, l'indice du bit
unsigned int blockIndex = GetBlockIndex(bit);