|
@@ -126,7 +126,7 @@ template<typename T, typename ...TArgs> void Registry::addComponent(Entity entit
|
|
|
/* Check the pool is big enough */
|
|
|
if (componentId >= this->componentPools.size())
|
|
|
{
|
|
|
- this->componentPools.reserve(componentId + 1, nullptr);
|
|
|
+ this->componentPools.resize(componentId + 1, nullptr);
|
|
|
}
|
|
|
|
|
|
/* Is this component exist in the pool? */
|