From f70ddb35998f7aa7e4a404ae294d161d40c7ef95 Mon Sep 17 00:00:00 2001 From: bekodeg Date: Wed, 20 Dec 2023 08:44:24 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BA=20=D1=81=D1=80=D0=B0=D0=B2=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ElectricLocomotive/Generics/LocomotiveCompareByColor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ElectricLocomotive/Generics/LocomotiveCompareByColor.cs b/ElectricLocomotive/Generics/LocomotiveCompareByColor.cs index ac9ad53..af0aa18 100644 --- a/ElectricLocomotive/Generics/LocomotiveCompareByColor.cs +++ b/ElectricLocomotive/Generics/LocomotiveCompareByColor.cs @@ -24,7 +24,7 @@ namespace ProjectElectricLocomotive.Generics { return x.EntityLocomotive.BodyColor.ToArgb().CompareTo(y.EntityLocomotive.BodyColor.ToArgb()); } - if (x.EntityLocomotive.BodyColor.ToArgb().CompareTo(y.EntityLocomotive.BodyColor.ToArgb()) != 0) + if (x.EntityLocomotive.BodyColor.ToArgb().CompareTo(y.EntityLocomotive.BodyColor.ToArgb()) == 0) { return x.EntityLocomotive.BodyColor.ToArgb().CompareTo(y.EntityLocomotive.BodyColor.ToArgb()); }