mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-03 18:31:17 +00:00
Fixing has component with disabled ones
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user