diff --git a/Warship/Warship/SetWarshipsGeneric.cs b/Warship/Warship/SetWarshipsGeneric.cs index 1b66385..401a6b8 100644 --- a/Warship/Warship/SetWarshipsGeneric.cs +++ b/Warship/Warship/SetWarshipsGeneric.cs @@ -23,12 +23,7 @@ namespace Warship public int Insert(T warship) { - if (Count >= _maxCount) - throw new StorageOverflowException(_maxCount); - - _places.Insert(0, warship); - - return 0; + return Insert(warship, 0); } public int Insert(T warship, int position)