Исправления

This commit is contained in:
prodigygirl 2022-10-10 14:59:25 +04:00
parent bb3ec87411
commit 6c1ba48d5c

View File

@ -60,7 +60,7 @@ namespace ArmoredCar
/// <returns></returns>
public T Remove(int position)
{
if (position < 0 || position >= _maxCount)
if (position < 0 || position >= Count)
return null;
T armoredCar = _places[position];
_places.RemoveAt(position);
@ -77,7 +77,7 @@ namespace ArmoredCar
{
get
{
if (position < 0 || position >= _maxCount)
if (position < 0 || position >= Count)
return null;
return _places[position];
}