From d60cbc96e58368d124d9a288ad20d7cda1de3452 Mon Sep 17 00:00:00 2001 From: "ityurner02@mail.ru" Date: Sun, 9 Oct 2022 19:26:24 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B2=D0=B5=D1=80=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BF=D0=BE=D0=B2=D1=82=D0=BE=D1=80=D1=8F=D1=8E?= =?UTF-8?q?=D1=89=D0=B8=D0=B5=D1=81=D1=8F=20=D0=BA=D0=BB=D1=8E=D1=87=D0=B8?= =?UTF-8?q?=20=D0=B2=20=D1=81=D0=BB=D0=BE=D0=B2=D0=B0=D1=80=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AntiAircraftGun/AntiAircraftGun/MapsCollection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AntiAircraftGun/AntiAircraftGun/MapsCollection.cs b/AntiAircraftGun/AntiAircraftGun/MapsCollection.cs index 7d61c5c..9fafc57 100644 --- a/AntiAircraftGun/AntiAircraftGun/MapsCollection.cs +++ b/AntiAircraftGun/AntiAircraftGun/MapsCollection.cs @@ -42,7 +42,7 @@ namespace AntiAircraftGun /// Карта public void AddMap(string name, AbstractMap map) { - _mapStorages.Add(name, new MapWithSetAntiAircraftGunsGeneric(_pictureWidth, _pictureHeight, map)); + if(!_mapStorages.ContainsKey(name)) _mapStorages.Add(name, new MapWithSetAntiAircraftGunsGeneric(_pictureWidth, _pictureHeight, map)); } /// /// Удаление карты