Skip to content

Commit 0fdb08e

Browse files
committed
Fix #60 🔥
1 parent 61daf98 commit 0fdb08e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Runtime/LibEcs/EntityMeta.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ public void AddGroup(int type)
8585
[MethodImpl(MethodImplOptions.AggressiveInlining)]
8686
public void RemoveGroup(int type)
8787
{
88-
for (var tRemoveIndex = 0; tRemoveIndex <= componentsAmount; tRemoveIndex++)
88+
for (var tRemoveIndex = 0; tRemoveIndex <= groupsAmount; tRemoveIndex++)
8989
{
9090
if (groups[tRemoveIndex] == type)
9191
{
92-
for (var j = tRemoveIndex; j <= groupsAmount; ++j)
92+
for (var j = tRemoveIndex; j < groupsAmount; ++j)
9393
groups[j] = groups[j + 1];
9494
groupsAmount--;
9595
break;

0 commit comments

Comments
 (0)