Skip to content

Commit

Permalink
first set of handles allocated returns an uninitialized handle (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
ogam authored Jul 22, 2024
1 parent c3c4cfa commit dccb392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cute_handle_table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ CF_Handle cf_handle_allocator_alloc(CF_HandleTable* table, uint32_t index, uint1
int first_index = table->m_handles.capacity();
if (!first_index) first_index = 1;
table->m_handles.ensure_count(first_index * 2);
int last_index = table->m_handles.capacity() - 1;
int last_index = table->m_handles.count() - 1;
s_add_elements_to_freelist(table, first_index, last_index);
freelist_index = table->m_freelist;
}
Expand Down

0 comments on commit dccb392

Please sign in to comment.