Skip to content

Commit 1cbf09e

Browse files
fix bug
1 parent d36cb44 commit 1cbf09e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Flamui/ArenaList.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,13 @@ public unsafe void Add(T value)
4848
{
4949
_arena.AllocateSlice<T>(_backingSlice.Count);
5050
_backingSlice = new Slice<T>(_backingSlice.Items, _backingSlice.Count * 2);
51+
_backingSliceAllocateNum = _arena.AllocNum;
5152
}
5253
else
5354
{
5455
var newSlice = _arena.AllocateSlice<T>(Capacity * 2);
56+
_backingSliceAllocateNum = _arena.AllocNum;
57+
5558
_backingSlice.Span.CopyTo(newSlice.Span);
5659
_backingSlice = newSlice;
5760
}

0 commit comments

Comments
 (0)