Browse Source

fix bug

tags/2.6a
sebas77 6 years ago
parent
commit
928ebc991d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      Svelto.ECS/ExecuteOnEntitiesDB.cs

+ 2
- 2
Svelto.ECS/ExecuteOnEntitiesDB.cs View File

@@ -176,7 +176,7 @@ namespace Svelto.ECS.Internal
for (int i = 0; i < innerCount; i++)
action(ref entities[i]);

SafetyChecks(casted, count);
SafetyChecks(casted, innerCount);
}
}
}
@@ -202,7 +202,7 @@ namespace Svelto.ECS.Internal
for (int i = 0; i < innerCount; i++)
action(ref entities[i], ref value);

SafetyChecks(casted, count);
SafetyChecks(casted, innerCount);
}
}
}


Loading…
Cancel
Save