From a7aa4f92d6936efa27ef3401a790449bca227c2d Mon Sep 17 00:00:00 2001 From: Pavel_Sorokin Date: Fri, 2 Dec 2022 12:05:08 +0400 Subject: [PATCH] fix --- Liner/Liner/ShipCompareByColor.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Liner/Liner/ShipCompareByColor.cs b/Liner/Liner/ShipCompareByColor.cs index 5df0f57..c97e27c 100644 --- a/Liner/Liner/ShipCompareByColor.cs +++ b/Liner/Liner/ShipCompareByColor.cs @@ -44,9 +44,9 @@ namespace Liner } if (xShip.GetShip.Ship is EntityLiner xLiner && yShip.GetShip.Ship is EntityLiner yLiner) { - string xLocomotiveDopColor = xLiner.DopColor.Name; - string yLocomotiveDopColor = yLiner.DopColor.Name; - var dopColorCompare = xShipColor.CompareTo(yShipColor); + string xShipDopColor = xLiner.DopColor.Name; + string yShipDopColor = yLiner.DopColor.Name; + var dopColorCompare = xShipDopColor.CompareTo(yShipDopColor); if (dopColorCompare != 0) { return dopColorCompare;