diff --git a/WarmlyShip/WarmlyShip/SetShipGeneric.cs b/WarmlyShip/WarmlyShip/SetShipGeneric.cs index c768070..8a37607 100644 --- a/WarmlyShip/WarmlyShip/SetShipGeneric.cs +++ b/WarmlyShip/WarmlyShip/SetShipGeneric.cs @@ -36,7 +36,7 @@ namespace WarmlyShip { if (position >= _maxCount || position >= _places.Count) throw new ShipNotFoundException(position); T DelElement = _places[position]; - _places[position] = null; + _places.Remove(DelElement); return DelElement; }