diff --git a/Source/MonoGame.Extended/Collections/ObjectPool.cs b/Source/MonoGame.Extended/Collections/ObjectPool.cs index 829491c7..066fa965 100644 --- a/Source/MonoGame.Extended/Collections/ObjectPool.cs +++ b/Source/MonoGame.Extended/Collections/ObjectPool.cs @@ -41,7 +41,9 @@ namespace MonoGame.Extended.Collections _instantiationFunction = instantiationFunc; _freeItems = new Deque(capacity); - IsFullPolicy = isFullPolicy; + IsFullPolicy = isFullPolicy; + + Capacity = capacity; } public IEnumerator GetEnumerator()