Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanrw committed Oct 16, 2024
1 parent 0aa0e7d commit cd1ec13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Arch/Core/World.cs
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,7 @@ public void DuplicateN(Entity sourceEntity, int n, Span<Entity> outputSpan)
Debug.Assert(IsAlive(sourceEntity));
Debug.Assert(n > 0);
Debug.Assert(n <= outputSpan.Length);
// TODO: this could be optimised by getting the chunks and using Array.Fill().
for (int i = 0; i < n; ++i)
{
outputSpan[i] = Duplicate(sourceEntity);
Expand Down

0 comments on commit cd1ec13

Please sign in to comment.