diff --git a/AirplaneWithRadar/AirplaneWithRadar/MapsCollection.cs b/AirplaneWithRadar/AirplaneWithRadar/MapsCollection.cs index 4bd572c..fe7f308 100644 --- a/AirplaneWithRadar/AirplaneWithRadar/MapsCollection.cs +++ b/AirplaneWithRadar/AirplaneWithRadar/MapsCollection.cs @@ -36,7 +36,7 @@ /// Карта public void AddMap(string name, AbstractMap map) { - _mapStorages.Add(name, new(_pictureWidth, _pictureHeight, map)); + _mapStorages[name] = new(_pictureWidth, _pictureHeight, map); } /// /// Удаление карты