mirror of https://github.com/OpenTTD/OpenTTD
Fix: Violation of strict weak ordering in TownRatingSorter
If two unrated town names compare equal in TownNameSorterpull/10697/head
parent
e437b8edae
commit
684c7bbc93
|
@ -777,7 +777,7 @@ private:
|
|||
|
||||
/* Sort unrated towns always on ascending town name. */
|
||||
if (before) return TownDirectoryWindow::TownNameSorter(a, b);
|
||||
return !TownDirectoryWindow::TownNameSorter(a, b);
|
||||
return TownDirectoryWindow::TownNameSorter(b, a);
|
||||
}
|
||||
|
||||
public:
|
||||
|
|
Loading…
Reference in New Issue