Fixing has component with disabled ones

This commit is contained in:
Zoe Roux
2021-06-08 14:28:46 +02:00
parent 400c14af82
commit af7f972d30
+3 -1
View File
@@ -70,7 +70,9 @@ namespace WAL
auto cmp = this->_components.find(type);
if (cmp == this->_components.end())
return false;
return !cmp->second->isDisabled();
if (skipDisabled)
return !cmp->second->isDisabled();
return true;
}
void Entity::_componentAdded(const std::type_index &type)