diff --git a/AirBomber/AirBomber/FormMapWithSetAirplanes.cs b/AirBomber/AirBomber/FormMapWithSetAirplanes.cs index 7b45a8d..3082e34 100644 --- a/AirBomber/AirBomber/FormMapWithSetAirplanes.cs +++ b/AirBomber/AirBomber/FormMapWithSetAirplanes.cs @@ -9,7 +9,6 @@ namespace AirBomber /// private MapWithSetAirplanesGeneric _mapAirplanesCollectionGeneric; private GeneratorAirplane _generatorAirplane; - private AbstractMap? _map; /// /// Конструктор /// @@ -86,7 +85,7 @@ namespace AirBomber dir = Direction.Right; break; } - pictureBox.Image = _map?.MoveObject(dir) ?? pictureBox.Image; + pictureBox.Image = _mapAirplanesCollectionGeneric?.MoveObject(dir) ?? pictureBox.Image; } /// /// Добавления типа двигателя и его количество в генератор