From 970ee9086290ed65d9fb7be1f021842da8e176f6 Mon Sep 17 00:00:00 2001 From: Efi Date: Fri, 22 Dec 2023 12:03:14 +0400 Subject: [PATCH] Changes: AddSet check --- AirBomber/AirBomber/WarAirplaneGenericStorage.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AirBomber/AirBomber/WarAirplaneGenericStorage.cs b/AirBomber/AirBomber/WarAirplaneGenericStorage.cs index c3c21eb..12c660c 100644 --- a/AirBomber/AirBomber/WarAirplaneGenericStorage.cs +++ b/AirBomber/AirBomber/WarAirplaneGenericStorage.cs @@ -23,6 +23,10 @@ namespace AirBomber.Generics } public void AddSet(string name) { + if (_warAirplaneStorages.ContainsKey(name)) + { + return; + } _warAirplaneStorages.Add(name, new WarAirplaneGenericCollection(_pictureWidth, _pictureHeight)); } public void DelSet(string name)