подправил

This commit is contained in:
Макс Бондаренко 2022-11-30 09:15:42 +04:00
parent 84f6cf46f9
commit 02a9aee9a3

View File

@ -36,7 +36,7 @@ namespace WarmlyShip
{ {
if (position >= _maxCount || position >= _places.Count) throw new ShipNotFoundException(position); if (position >= _maxCount || position >= _places.Count) throw new ShipNotFoundException(position);
T DelElement = _places[position]; T DelElement = _places[position];
_places[position] = null; _places.Remove(DelElement);
return DelElement; return DelElement;
} }