mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-24 20:54:08 +01:00
Change: Use per-company group numbers. (#12297)
This is used by the default group name, replacing the use of group index.
This commit is contained in:
@@ -180,7 +180,7 @@ void BuildGuiGroupList(GUIGroupList &dst, bool fold, Owner owner, VehicleType ve
|
||||
}
|
||||
|
||||
int r = StrNaturalCompare(last_group[0].second, last_group[1].second); // Sort by name (natural sorting).
|
||||
if (r == 0) return a.group->index < b.group->index;
|
||||
if (r == 0) return a.group->number < b.group->number;
|
||||
return r < 0;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user