подправил
This commit is contained in:
parent
84f6cf46f9
commit
02a9aee9a3
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user