diff --git a/distribution/changelog.txt b/distribution/changelog.txt index cabbc19b4e..6155928b37 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -51,6 +51,7 @@ - Fix: [#17897] Guest can get stuck on tiles with construction rights outside the park. - Fix: [#17905] The chain button in the map window is enabled for rectangular maps when (re)opened. - Fix: [#17931] The in-game command ‘count_objects’ crashes the game. +- Fix: [#17865] With difficult guest generation, tested but unopened rides still contribute to the guest cap. - Fix: [#17866] [Plugin] Wrong Soft Guest Cap at start of new game 0.4.1 (2022-07-04) diff --git a/src/openrct2/world/Park.cpp b/src/openrct2/world/Park.cpp index c23d7d32d4..4ca6475e86 100644 --- a/src/openrct2/world/Park.cpp +++ b/src/openrct2/world/Park.cpp @@ -570,6 +570,8 @@ uint32_t Park::CalculateSuggestedMaxGuests() const suggestedMaxGuests = std::min(suggestedMaxGuests, 1000); for (auto& ride : GetRideManager()) { + if (ride.status != RideStatus::Open) + continue; if (ride.lifecycle_flags & RIDE_LIFECYCLE_CRASHED) continue; if (ride.lifecycle_flags & RIDE_LIFECYCLE_BROKEN_DOWN)