From d83609741b9b226b5b3a06b80d7c943bbc336097 Mon Sep 17 00:00:00 2001 From: Danil Malin Date: Thu, 24 Nov 2022 20:18:22 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B0=D0=BB=D0=B5=D0=BD=D1=8C=D0=BA?= =?UTF-8?q?=D0=B8=D0=B9=20=D1=84=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WarmlyLocomotive/WarmlyLocomotive/SetLocomotivesGeneric.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WarmlyLocomotive/WarmlyLocomotive/SetLocomotivesGeneric.cs b/WarmlyLocomotive/WarmlyLocomotive/SetLocomotivesGeneric.cs index 050f49a..b579117 100644 --- a/WarmlyLocomotive/WarmlyLocomotive/SetLocomotivesGeneric.cs +++ b/WarmlyLocomotive/WarmlyLocomotive/SetLocomotivesGeneric.cs @@ -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;