1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-26 16:09:10 +00:00

Fix: Violation of strict weak ordering in TownRatingSorter

If two unrated town names compare equal in TownNameSorter
This commit is contained in:
Jonathan G Rennison
2023-04-22 23:15:03 +01:00
committed by PeterN
parent e437b8edae
commit 684c7bbc93

View File

@@ -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: