diff --git a/ElectricLocomotive/ElectricLocomotive/ExtentionLocomotive.cs b/ElectricLocomotive/ElectricLocomotive/ExtentionLocomotive.cs
index fd063a4..5218aba 100644
--- a/ElectricLocomotive/ElectricLocomotive/ExtentionLocomotive.cs
+++ b/ElectricLocomotive/ElectricLocomotive/ExtentionLocomotive.cs
@@ -17,7 +17,7 @@ namespace ProjectElectricLocomotive.DrawingObjects
/// Ширина
/// Высота
/// Объект
- public static DrawingLocomotive? CreateDrawningCar(this string info, char
+ public static DrawingLocomotive? CreateDrawningLocomotive(this string info, char
separatorForObject, int width, int height)
{
string[] strs = info.Split(separatorForObject);
diff --git a/ElectricLocomotive/ElectricLocomotive/LocomotivesGenericStorage.cs b/ElectricLocomotive/ElectricLocomotive/LocomotivesGenericStorage.cs
index 68f1489..0c46d87 100644
--- a/ElectricLocomotive/ElectricLocomotive/LocomotivesGenericStorage.cs
+++ b/ElectricLocomotive/ElectricLocomotive/LocomotivesGenericStorage.cs
@@ -169,9 +169,9 @@ namespace ProjectElectricLocomotive.Generics
}
LocomotivesGenericCollection collection = new(_pictureWidth, _pictureHeight);
string[] set = record[1].Split(_separatorRecords, StringSplitOptions.RemoveEmptyEntries);
- foreach (string thing in set)
+ foreach (string elem in set)
{
- DrawingLocomotive? loco = thing?.CreateDrawingLocomotive(_separatorForObject, _pictureWidth, _pictureHeight);
+ DrawingLocomotive? loco = elem?.CreateDrawningLocomotive(_separatorForObject, _pictureWidth, _pictureHeight);
if (loco != null)
{
if ((collection + loco) == -1)