Malin D.V. Lab work 7 #7

Closed
Danil_Malin wants to merge 4 commits from LabWork_07 into LabWork_06
Showing only changes of commit d83609741b - Show all commits

View File

@ -46,7 +46,7 @@ namespace WarmlyLocomotive
{
if (position < 0 || position > Count || _maxCount == Count)
{
throw new StorageOverflowException(Count);
throw new StorageOverflowException(_maxCount);
}
_places.Insert(position, locomotive);
return position;