fixed remove boat in Remove
This commit is contained in:
parent
f8ac712f8a
commit
42c6b8fa7b
@ -72,7 +72,7 @@ namespace Boats
|
|||||||
if (Count == 0 || position < 0 || position >= _maxCount)
|
if (Count == 0 || position < 0 || position >= _maxCount)
|
||||||
return null;
|
return null;
|
||||||
T boat = _places[position];
|
T boat = _places[position];
|
||||||
_places[position] = null;
|
_places.RemoveAt(position);
|
||||||
return boat;
|
return boat;
|
||||||
}
|
}
|
||||||
public T this[int position]
|
public T this[int position]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user