From b18440e9bcf438e983dec732725f85d50418b227 Mon Sep 17 00:00:00 2001 From: Mergul Date: Wed, 16 Jan 2019 13:51:28 +0100 Subject: [PATCH] -fixed problems with new DMD --- source/ecs/manager.d | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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)