Skip to content

Commit

Permalink
Merge pull request #72 from cathei/master
Browse files Browse the repository at this point in the history
Fix submitted indices to be cleared before entity removal
  • Loading branch information
sebas77 authored Apr 26, 2022
2 parents 06107b0 + a8a3f63 commit 474237f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions com.sebaslab.svelto.ecs/Core/EnginesRoot.Submission.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ static void RemoveEntities(

using (sampler.Sample("Remove Entities"))
{
enginesRoot._cachedRangeOfSubmittedIndices.FastClear();

foreach (var entitiesToRemove in removeOperations)
{
ExclusiveGroupStruct fromGroup = entitiesToRemove.key;
Expand Down

0 comments on commit 474237f

Please sign in to comment.