This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
modtainers
/
Svelto.ECS
mirror of
https://github.com/sebas77/Svelto.ECS
Watch
4
Star
0
Fork
0
Code
Issues
0
Releases
49
Wiki
Activity
Browse Source
fix submitted indices to be cleared before entity removal
pull/72/head
Maxwell Keonwoo Kang
2 years ago
parent
06107b0303
commit
a8a3f635a9
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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;
Write
Preview
Loading…
Cancel
Save