Исправления
This commit is contained in:
parent
bb3ec87411
commit
6c1ba48d5c
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user