diff --git a/source/ecs/manager.d b/source/ecs/manager.d index d603b30..aa8c20a 100644 --- a/source/ecs/manager.d +++ b/source/ecs/manager.d @@ -1121,11 +1121,11 @@ class EntityManager current_delta += entites_in_block * components[id].size; } - foreach (uint i, ref system; systems) + foreach (i, ref system; systems) { if (system.m_update is null) continue; - addSystemCaller(*info, i); + addSystemCaller(*info, cast(uint)i); } entities_infos.add(info.components, info); @@ -1930,13 +1930,13 @@ class EntityManager qsort(pass.system_callers.array.ptr, pass.system_callers.length, (SystemCaller*).sizeof, &compareSystems); - foreach (uint i, caller; pass.system_callers) - caller.job_group.id = i; + foreach (i, caller; pass.system_callers) + caller.job_group.id = cast(uint)i; int priority = int.min; uint beg = 0; index = 0; - foreach (uint i, caller; pass.system_callers) + foreach (i, caller; pass.system_callers) { index = 0; foreach (ex; caller.exclusion)