diff --git a/WarmlyLocomotive/WarmlyLocomotive/FormMapWithSetLocomotives.cs b/WarmlyLocomotive/WarmlyLocomotive/FormMapWithSetLocomotives.cs index 5b281bb..868365e 100644 --- a/WarmlyLocomotive/WarmlyLocomotive/FormMapWithSetLocomotives.cs +++ b/WarmlyLocomotive/WarmlyLocomotive/FormMapWithSetLocomotives.cs @@ -76,7 +76,7 @@ namespace WarmlyLocomotive { return; } - DrawningObjectLocomotive locomotive = new DrawningObjectLocomotive(drawningLocomotive); + DrawningObjectLocomotive locomotive = new(drawningLocomotive); if (_mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty] + locomotive != -1) { MessageBox.Show("Объект добавлен");