From 78300a80ddc7544c43f30f7bd3c736681aca2ab3 Mon Sep 17 00:00:00 2001 From: lewyche <101478421+lewyche@users.noreply.github.com> Date: Sat, 6 Jul 2024 10:27:18 -0400 Subject: [PATCH] Fix #22185: Intensity and nausea are incorrectly sorted in the rides list after ratings invalidation Co-authored-by: Michael Steenbeek <1478678+Gymnasiast@users.noreply.github.com> --- contributors.md | 1 + distribution/changelog.txt | 1 + src/openrct2/ride/RideRatings.cpp | 2 ++ 3 files changed, 4 insertions(+) diff --git a/contributors.md b/contributors.md index 7015516379..bc4cd8f69c 100644 --- a/contributors.md +++ b/contributors.md @@ -241,6 +241,7 @@ Appreciation for contributors who have provided substantial work, but are no lon * Karsten Van Fossan (karstenvanf) * Kaavya Ramachandhran (ayvaak) * Mike Harvey (harvito) +* Robert Yan (lewyche) ## Toolchain * (Balletie) - macOS diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 7b00e66426..06e8c3156d 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -49,6 +49,7 @@ - Fix: [#22152] [Plugin] Negative signed integers are truncated. - Fix: [#22161] Using arrow keys in textboxes crashes the game. - Fix: [#22174] Cheats are reset when starting a server. +- Fix: [#22185] Intensity and nausea are incorrectly sorted in the rides list after ratings invalidation. - Fix: [#22226] Red traffic light shows incorrect sprite when pressed. - Fix: [objects#323] Incorrect wall boundaries on large WW/TT scenery objects. - Fix: [objects#331] Incorrect hover car capacity string. diff --git a/src/openrct2/ride/RideRatings.cpp b/src/openrct2/ride/RideRatings.cpp index 8dd9b7c472..fe824c68ad 100644 --- a/src/openrct2/ride/RideRatings.cpp +++ b/src/openrct2/ride/RideRatings.cpp @@ -2268,4 +2268,6 @@ bool RatingTuple::isNull() const void RatingTuple::setNull() { excitement = kRideRatingUndefined; + intensity = kRideRatingUndefined; + nausea = kRideRatingUndefined; }