registry: minor changes

This commit is contained in:
Michele Caini
2020-03-21 23:35:36 +01:00
parent 34f05fb8dc
commit f7e3a055fb

View File

@@ -191,7 +191,7 @@ class basic_registry {
if(const auto length = pools.size(); !(index < length) || pools[index].type_id != type_info<Component>::id()) {
for(index = {}; index < length && pools[index].type_id != type_info<Component>::id(); ++index);
if(index == pools.size()) {
if(index == length) {
pools.push_back(pool_data{
type_info<Component>::id(),
std::unique_ptr<sparse_set<entity_type>>{new pool_handler<Component>()},