fixed varname in ExtentionBoat.GetDataForSave
This commit is contained in:
parent
7d27bcd94f
commit
681b60f6a6
@ -51,9 +51,9 @@ namespace Boats
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static string GetDataForSave(this DrawingBoat drawingBoat)
|
public static string GetDataForSave(this DrawingBoat drawingBoat)
|
||||||
{
|
{
|
||||||
var car = drawingBoat.Boat;
|
var boat = drawingBoat.Boat;
|
||||||
var str = $"{car.Speed}{_separatorForObject}{car.Weight}{_separatorForObject}{car.BodyColor.Name}";
|
var str = $"{boat.Speed}{_separatorForObject}{boat.Weight}{_separatorForObject}{boat.BodyColor.Name}";
|
||||||
if (car is not EntityCatamaran catamaran)
|
if (boat is not EntityCatamaran catamaran)
|
||||||
{
|
{
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user