Browse Source

Merge pull request #72 from cathei/master

Fix submitted indices to be cleared before entity removal
pull/73/head
Sebastiano Mandalà GitHub 2 years ago
parent
commit
474237f915
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      com.sebaslab.svelto.ecs/Core/EnginesRoot.Submission.cs

+ 2
- 0
com.sebaslab.svelto.ecs/Core/EnginesRoot.Submission.cs View File

@@ -75,6 +75,8 @@ namespace Svelto.ECS

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

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


Loading…
Cancel
Save