diff --git a/WarmlyShip/WarmlyShip/FormMapWithSetShips.cs b/WarmlyShip/WarmlyShip/FormMapWithSetShips.cs index e9841c1..9494f61 100644 --- a/WarmlyShip/WarmlyShip/FormMapWithSetShips.cs +++ b/WarmlyShip/WarmlyShip/FormMapWithSetShips.cs @@ -167,11 +167,11 @@ namespace WarmlyShip int pos = Convert.ToInt32(maskedTextBoxPosition.Text); try { - var deletedAirplane = _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty] - pos; - if (deletedAirplane != null) + var deletedShip = _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty] - pos; + if (deletedShip != null) { MessageBox.Show("Объект удален"); - _logger.LogInformation("Из текущей карты удален объект {@Airplane}", deletedAirplane); + _logger.LogInformation("Из текущей карты удален объект {@ship}", deletedShip); pictureBox.Image = _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty].ShowSet(); } else