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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
com.sebaslab.svelto.ecs/Core/EnginesRoot.Submission.cs
|
|
@@ -75,6 +75,8 @@ namespace Svelto.ECS |
|
|
|
|
|
|
|
using (sampler.Sample("Remove Entities")) |
|
|
|
{ |
|
|
|
enginesRoot._cachedRangeOfSubmittedIndices.FastClear(); |
|
|
|
|
|
|
|
foreach (var entitiesToRemove in removeOperations) |
|
|
|
{ |
|
|
|
ExclusiveGroupStruct fromGroup = entitiesToRemove.key; |
|
|
|