Browse Source

fix submitted indices to be cleared before entity removal

pull/72/head
Maxwell Keonwoo Kang 2 years ago
parent
commit
a8a3f635a9
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