diff --git a/Svelto.ECS/ECS/EntityViewBuilder.cs b/Svelto.ECS/ECS/EntityViewBuilder.cs index 73606af..7b89bcd 100644 --- a/Svelto.ECS/ECS/EntityViewBuilder.cs +++ b/Svelto.ECS/ECS/EntityViewBuilder.cs @@ -54,19 +54,19 @@ namespace Svelto.ECS readonly Type _entityViewType = typeof(EntityViewType); } - public class EntityStructBuilder : IEntityViewBuilder where EntityViewType : struct, IEntityStruct + public class EntityViewStructBuilder : IEntityViewBuilder where EntityViewType : struct, IEntityStruct { public void BuildEntityViewAndAddToList(ref ITypeSafeList list, int entityID, out IEntityView entityView) { - var lentityView = default(EntityViewType); - lentityView.ID = entityID; + var structEntityView = default(EntityViewType); + structEntityView.ID = entityID; if (list == null) list = new TypeSafeFasterListForECSForStructs(); var castedList = list as TypeSafeFasterListForECSForStructs; - castedList.Add(lentityView); + castedList.Add(structEntityView); entityView = null; }