From 681b60f6a6beefa8a5be3177a40847e1003ae45c Mon Sep 17 00:00:00 2001 From: Nikita Potapov <47923521+nikita-potapov@users.noreply.github.com> Date: Wed, 30 Nov 2022 08:37:17 +0400 Subject: [PATCH] fixed varname in ExtentionBoat.GetDataForSave --- Boats/Boats/ExtentionBoat.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Boats/Boats/ExtentionBoat.cs b/Boats/Boats/ExtentionBoat.cs index 091d411..08d009c 100644 --- a/Boats/Boats/ExtentionBoat.cs +++ b/Boats/Boats/ExtentionBoat.cs @@ -51,9 +51,9 @@ namespace Boats /// public static string GetDataForSave(this DrawingBoat drawingBoat) { - var car = drawingBoat.Boat; - var str = $"{car.Speed}{_separatorForObject}{car.Weight}{_separatorForObject}{car.BodyColor.Name}"; - if (car is not EntityCatamaran catamaran) + var boat = drawingBoat.Boat; + var str = $"{boat.Speed}{_separatorForObject}{boat.Weight}{_separatorForObject}{boat.BodyColor.Name}"; + if (boat is not EntityCatamaran catamaran) { return str; }