From af7f972d30759fd7977866f752a481ec5c36428f Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Tue, 8 Jun 2021 14:28:46 +0200 Subject: [PATCH] Fixing has component with disabled ones --- lib/wal/sources/Entity/Entity.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/wal/sources/Entity/Entity.cpp b/lib/wal/sources/Entity/Entity.cpp index e4e07453..8e4ff0f1 100644 --- a/lib/wal/sources/Entity/Entity.cpp +++ b/lib/wal/sources/Entity/Entity.cpp @@ -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)