поправка к сравнению

This commit is contained in:
bekodeg 2023-12-20 08:44:24 +04:00
parent 732526724d
commit f70ddb3599

View File

@ -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());
}