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;