diff --git a/Projects/Server/Collections/PooledRefList.cs b/Projects/Server/Collections/PooledRefList.cs index d0cd73aa0..dfde0358f 100644 --- a/Projects/Server/Collections/PooledRefList.cs +++ b/Projects/Server/Collections/PooledRefList.cs @@ -143,7 +143,7 @@ public ref struct PooledRefList { if (value > 0) { - T[] newItems = ArrayPool.Rent(_size); + T[] newItems = ArrayPool.Rent(value); if (_size > 0) { Array.Copy(_items, newItems, _size);