From e3824c070f5e2fd08364abd9e64c18fc9675ff89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20B=C3=A4tz?= Date: Mon, 14 Dec 2020 22:35:50 +0100 Subject: [PATCH] bug fix --- src/Exomia.ECS/EntityManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Exomia.ECS/EntityManager.cs b/src/Exomia.ECS/EntityManager.cs index 1df32fc..5c6ff28 100644 --- a/src/Exomia.ECS/EntityManager.cs +++ b/src/Exomia.ECS/EntityManager.cs @@ -85,7 +85,7 @@ private void InitializeEntitySystems(uint managerMask) EntitySystemConfigurationAttribute attribute; if ((attribute = t.GetCustomAttribute(false)) != null) { - if (attribute.ManagerFlags == 0 || (attribute.ManagerFlags & managerMask) == managerMask) + if (attribute.ManagerFlags == 0 || (managerMask & attribute.ManagerFlags) == attribute.ManagerFlags) { switch (attribute.EntitySystemType) {