Fix #11002: Rides list shows both red and green light activated (#11622)

This commit is contained in:
Michael Steenbeek authored and GitHub committed 2020-05-04 19:38:48 -03:00
1 parent ff46481453
commit 80933dc0cc
2 files changed
+3 -2

No files matched your search

+1
View File
@@ -12,6 +12,7 @@
- Fix: [#5451] Guests scream on every descent, no matter how small.
- Fix: [#6119] Advertising campaign for ride window not updated properly (original bug).
- Fix: [#7006] Submarine Ride is in the wrong research group.
- Fix: [#11002] Rides list shows both red and green light activated.
- Fix: [#11072] Land and water tools working out of bounds (original bug).
- Fix: [#11259] Custom JSON object breaks saves.
- Fix: [#11290] Perform funds checking for all peeps entering a ride.
+2 -2
View File
@@ -530,9 +530,9 @@ static void window_ride_list_invalidate(rct_window* w)
w->widgets[WIDX_OPEN_LIGHT].type = WWT_IMGBTN;
const auto& rideManager = GetRideManager();
auto allClosed = false;
auto allClosed = true;
auto allOpen = false;
if (std::size(rideManager) != 0)
if (w->no_list_items > 0 && std::size(rideManager) != 0)
{
auto c = static_cast<RideClassification>(w->page);
allClosed = std::none_of(rideManager.begin(), rideManager.end(), [c](const Ride& ride) {