Skip to content

Commit

Permalink
Merge branch 'release/2021.9.22'
Browse files Browse the repository at this point in the history
  • Loading branch information
Leopotam committed Sep 22, 2021
2 parents 301115f + 4bf3836 commit 39571d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"displayName": "LeoECS Lite Extended filters",
"description": "Extended filters for LeoECS Lite.",
"unity": "2020.3",
"version": "2021.7.22",
"version": "2021.9.22",
"keywords": [
"leoecslite",
"leoecs",
Expand Down
6 changes: 5 additions & 1 deletion src/filters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,10 @@ public static EcsFilter Reorder (this EcsFilter filter, EcsFilterReorderHandler
_filterSortPool[i] = cb (entities[i]);
}
Array.Sort (_filterSortPool, entities, 0, count);
var sparseIndex = filter.GetSparseIndex ();
for (int i = 0, iMax = count; i < iMax; i++) {
sparseIndex[entities[i]] = i + 1;
}
}
return filter;
}
Expand Down Expand Up @@ -894,7 +898,7 @@ public struct Exc<TExc1>

[MethodImpl (MethodImplOptions.AggressiveInlining)]
public EcsPool<TInc1> Inc1 () => _inc1;

[MethodImpl (MethodImplOptions.AggressiveInlining)]
public EcsPool<TInc2> Inc2 () => _inc2;

Expand Down

0 comments on commit 39571d3

Please sign in to comment.