@@ -149,7 +149,10 @@ void Registry::update()
for(auto pool: this->componentPools)
{
- pool->removeEntityFromPool(entity.getId());
+ if (pool != nullptr)
+ {
+ pool->removeEntityFromPool(entity.getId());
+ }
}
this->freeIds.push_back(entity.getId());