Skip to content

Commit

Permalink
Fix #60 🔥
Browse files Browse the repository at this point in the history
  • Loading branch information
PixeyeHQ committed Jul 4, 2020
1 parent 61daf98 commit 0fdb08e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Runtime/LibEcs/EntityMeta.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ public void AddGroup(int type)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void RemoveGroup(int type)
{
for (var tRemoveIndex = 0; tRemoveIndex <= componentsAmount; tRemoveIndex++)
for (var tRemoveIndex = 0; tRemoveIndex <= groupsAmount; tRemoveIndex++)
{
if (groups[tRemoveIndex] == type)
{
for (var j = tRemoveIndex; j <= groupsAmount; ++j)
for (var j = tRemoveIndex; j < groupsAmount; ++j)
groups[j] = groups[j + 1];
groupsAmount--;
break;
Expand Down

0 comments on commit 0fdb08e

Please sign in to comment.