From b6ceb1afce1158c3a20ca9180c0e22c598f7eff9 Mon Sep 17 00:00:00 2001 From: Henry Cheng <39224097+jazzysoggy@users.noreply.github.com> Date: Fri, 2 Sep 2022 02:27:13 -0500 Subject: [PATCH] Fix #17866: Wrong Soft Guest Cap at start of new game (#17869) * Change _suggestedGuestMaximum initalization * Update initialization method * Add changelog * Update changelog entry --- distribution/changelog.txt | 1 + src/openrct2/world/Park.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 2c1919c7e5..a1e14a77d1 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -50,6 +50,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: [#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 72fff9cc6f..c23d7d32d4 100644 --- a/src/openrct2/world/Park.cpp +++ b/src/openrct2/world/Park.cpp @@ -264,6 +264,7 @@ void Park::Initialise() gParkRating = 0; _guestGenerationProbability = 0; gTotalRideValueForMoney = 0; + _suggestedGuestMaximum = 0; gResearchLastItem = std::nullopt; gMarketingCampaigns.clear();