diff --git a/distribution/changelog.txt b/distribution/changelog.txt index a04fc9f384..5eafd966c5 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -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. diff --git a/src/openrct2-ui/windows/RideList.cpp b/src/openrct2-ui/windows/RideList.cpp index cd5f98dba1..55dfbca23d 100644 --- a/src/openrct2-ui/windows/RideList.cpp +++ b/src/openrct2-ui/windows/RideList.cpp @@ -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(w->page); allClosed = std::none_of(rideManager.begin(), rideManager.end(), [c](const Ride& ride) {