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

This commit is contained in:
Michael Steenbeek 2020-05-05 00:38:48 +02:00 committed by GitHub
parent ff46481453
commit 80933dc0cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

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.

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) {