diff --git a/Tank/Tank/CollectionGenericObjects/ListGenericObjects.cs b/Tank/Tank/CollectionGenericObjects/ListGenericObjects.cs index 4f8a19f..b4c9409 100644 --- a/Tank/Tank/CollectionGenericObjects/ListGenericObjects.cs +++ b/Tank/Tank/CollectionGenericObjects/ListGenericObjects.cs @@ -34,7 +34,7 @@ public class ListGenericObjects : ICollectionGenericObjects { if (value > 0) { - _maxCount = value - 1; + _maxCount = value; } } } diff --git a/Tank/Tank/CollectionGenericObjects/MassiveGenericObjects.cs b/Tank/Tank/CollectionGenericObjects/MassiveGenericObjects.cs index ffe26ca..d3a4f61 100644 --- a/Tank/Tank/CollectionGenericObjects/MassiveGenericObjects.cs +++ b/Tank/Tank/CollectionGenericObjects/MassiveGenericObjects.cs @@ -26,12 +26,12 @@ public class MassiveGenericObjects : ICollectionGenericObjects if (value > 0) { if (_collection.Length > 0) - { + {s Array.Resize(ref _collection, value); } else { - _collection = new T?[value - 1]; + _collection = new T?[value ]; } } }