Skip to content

Commit

Permalink
Fixed error.
Browse files Browse the repository at this point in the history
  • Loading branch information
genaray committed Jul 24, 2024
1 parent 66a46cb commit b0a6c02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Arch/Core/Edges/Archetype.Edges.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public partial class Archetype
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal void AddAddEdge(int index, Archetype archetype)
{
_addEdges.EnsureCapacity(index);
_addEdges.Add(index, archetype);
}

Expand All @@ -45,6 +46,7 @@ internal void AddAddEdge(int index, Archetype archetype)
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal void AddRemoveEdge(int index, Archetype archetype)
{
_removeEdges.EnsureCapacity(index);
_removeEdges.Add(index, archetype);
}

Expand Down

0 comments on commit b0a6c02

Please sign in to comment.