RandyGaul / cute_framework

The *cutest* framework out there for creating 2D games in C++!
https://randygaul.github.io/cute_framework/#/
Other
534 stars 31 forks source link

first set of handles allocated returns an uninitialized handle #175

Closed ogam closed 2 months ago

ogam commented 2 months ago

When you start to create handles the first_index being 1 will cause you to go from m_count 0 => 2 and m_capacity 0 => 8, last_index will get an bad handle on the very first set of handles, all handles afterwards seems to be fine.

second and later allocation times this grows it'll be m_count 2 => 16 and m_capacity 8 => 16 and won't cause any invalid handles