diff --git a/source/ecs/entity.d b/source/ecs/entity.d index 6a34e51..4777fc8 100644 --- a/source/ecs/entity.d +++ b/source/ecs/entity.d @@ -6,6 +6,11 @@ struct EntityID { uint id; uint counter; + + /*int opCmp(ref const EntityID s) const + { + return id < s.id; + }*/ } struct Entity diff --git a/source/ecs/manager.d b/source/ecs/manager.d index 576874d..082c6c3 100644 --- a/source/ecs/manager.d +++ b/source/ecs/manager.d @@ -368,7 +368,7 @@ class EntityManager Sys* getSystem(Sys)() { - return cast(Sys*) systems[Sys.system_id].system_pointer; + return cast(Sys*) systems[Sys.system_id].m_system_pointer; } void registerComponent(Comp)()