diff --git a/ProjectBomber/ProjectBomber/FormPlaneCollection.cs b/ProjectBomber/ProjectBomber/FormPlaneCollection.cs index 9065586..a045197 100644 --- a/ProjectBomber/ProjectBomber/FormPlaneCollection.cs +++ b/ProjectBomber/ProjectBomber/FormPlaneCollection.cs @@ -62,7 +62,7 @@ namespace ProjectAirBomber return; } - if (_company + drawningPlane) + if (_company + drawningPlane!= -1) { MessageBox.Show("Объект добавлен"); pictureBox.Image = _company.Show();