This commit is contained in:
Павел Путилин 2022-11-23 20:59:09 +04:00
parent fc62891cfc
commit d5e461cf6b

View File

@ -46,7 +46,7 @@
/// <param name="airplane">Добавляемый самолет</param> /// <param name="airplane">Добавляемый самолет</param>
/// <param name="position">Позиция</param> /// <param name="position">Позиция</param>
/// <returns></returns> /// <returns></returns>
public int Insert(T warplane, int position) public int Insert(T airplane, int position)
{ {
if (Count == _maxCount) if (Count == _maxCount)
throw new StorageOverflowException(_maxCount); throw new StorageOverflowException(_maxCount);
@ -54,7 +54,7 @@
{ {
return -1; return -1;
} }
_places.Insert(position, warplane); _places.Insert(position, airplane);
return position; return position;
} }
/// <summary> /// <summary>