Skip to content

Commit

Permalink
Traktor: Fixed bug in IdAllocator.
Browse files Browse the repository at this point in the history
  • Loading branch information
apistol78 committed Dec 7, 2023
1 parent 1747706 commit 2fddd68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/Core/Containers/IdAllocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ uint32_t IdAllocator::allocSequential(uint32_t span)
T_ASSERT(span > 0);
for (auto it = m_free.begin(); it != m_free.end(); ++it)
{
if (span <= (it->right - it->left))
if ((span - 1) <= (it->right - it->left))
{
const uint32_t freeId = it->left;

Expand Down

0 comments on commit 2fddd68

Please sign in to comment.