We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61daf98 commit 0fdb08eCopy full SHA for 0fdb08e
Runtime/LibEcs/EntityMeta.cs
@@ -85,11 +85,11 @@ public void AddGroup(int type)
85
[MethodImpl(MethodImplOptions.AggressiveInlining)]
86
public void RemoveGroup(int type)
87
{
88
- for (var tRemoveIndex = 0; tRemoveIndex <= componentsAmount; tRemoveIndex++)
+ for (var tRemoveIndex = 0; tRemoveIndex <= groupsAmount; tRemoveIndex++)
89
90
if (groups[tRemoveIndex] == type)
91
92
- for (var j = tRemoveIndex; j <= groupsAmount; ++j)
+ for (var j = tRemoveIndex; j < groupsAmount; ++j)
93
groups[j] = groups[j + 1];
94
groupsAmount--;
95
break;
0 commit comments