-fixed problems with new DMD

This commit is contained in:
Mergul 2019-01-16 13:51:28 +01:00
parent dec0582398
commit b18440e9bc

View file

@ -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)