From 4499c8397db4a244cbddfedbb7bc85e3b9bacd3b Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Mon, 12 Sep 2022 09:06:50 -0700 Subject: [PATCH] fix: Fixes pooled ref list resizing (#1169) --- Projects/Server/Collections/PooledRefList.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);