diff --git a/LiteEntitySystem/EntityLogic.cs b/LiteEntitySystem/EntityLogic.cs index 63b5864..37fa808 100644 --- a/LiteEntitySystem/EntityLogic.cs +++ b/LiteEntitySystem/EntityLogic.cs @@ -256,9 +256,9 @@ internal override void DestroyInternal() if (Childs.Count > 0) { var childsCopy = Childs.ToArray(); - if (childsCopy != null) //notify child entities about parent destruction - foreach (var entityLogicRef in childsCopy) - EntityManager.GetEntityById(entityLogicRef)?.OnBeforeParentDestroy(); + //notify child entities about parent destruction + foreach (var entityLogicRef in childsCopy) + EntityManager.GetEntityById(entityLogicRef)?.OnBeforeParentDestroy(); } base.DestroyInternal();