1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-17 13:02:27 +01:00

Make unknown popularity go at the bottom when sorted by highest

This commit is contained in:
ζeh Matt
2025-09-24 15:45:26 +03:00
parent 8a6d855edd
commit 5c693e56d6

View File

@@ -995,7 +995,7 @@ namespace OpenRCT2::Ui::Windows
break;
case INFORMATION_TYPE_POPULARITY:
SortListByPredicate([](const Ride& thisRide, const Ride& otherRide) -> bool {
return thisRide.popularity < otherRide.popularity;
return static_cast<int8_t>(thisRide.popularity) < static_cast<int8_t>(otherRide.popularity);
});
break;
case INFORMATION_TYPE_SATISFACTION: