Skip to content

Commit

Permalink
fix: Clear does not clear elements
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 committed Mar 4, 2023
1 parent 65cc2ff commit 9effef2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public void DoInitialize()
public override void Clear()
{
Initialize();
for (var i = _elements.Count - 1; i >= _upstreamElementCount; i--)
for (var i = _elements.Count - 1; i >= 0; i--)
_elements[i].EnsureRemoved();
_currentAdditionsSize = _currentAdditions.arraySize = 0;
}
Expand Down

0 comments on commit 9effef2

Please sign in to comment.