Browse Source

- found the time to fix properly a bug previously fixed.

tags/Rel1
sebas77 6 years ago
parent
commit
dadbe33829
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      ECS/EnginesRoot.cs

+ 6
- 1
ECS/EnginesRoot.cs View File

@@ -159,9 +159,14 @@ namespace Svelto.ECS
{
_implementedInterfaceTypes.Clear();

var type = typeof(IEngine);

for (int index = 0; index < implementedInterfaces.Length; index++)
{
var interfaceType = implementedInterfaces[index];

if (interfaceType.IsAssignableFrom(type) == false)
continue;
#if !NETFX_CORE

if (false == interfaceType.IsGenericType)
@@ -174,7 +179,7 @@ namespace Svelto.ECS

var genericTypeDefinition = interfaceType.GetGenericTypeDefinition();

_implementedInterfaceTypes[genericTypeDefinition] = interfaceType.GetGenericArguments();
_implementedInterfaceTypes.Add(genericTypeDefinition, interfaceType.GetGenericArguments());
}
}



Loading…
Cancel
Save