From f127a2c8bc61642ea8ed324fc9923e03e407991a Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Wed, 27 Apr 2022 23:17:23 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20=E2=80=9CRemove=20litter=E2=80=9D=20chea?= =?UTF-8?q?t=20does=20not=20empty=20litter=20bins?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- distribution/changelog.txt | 1 + src/openrct2/actions/SetCheatAction.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index b03f84823c..6248391b87 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -3,6 +3,7 @@ - Fix: [#16974] Small scenery ghosts can be deleted. - Fix: [#17005] Unable to set patrol area for first staff member in park. - Fix: [#17073] Corrupt ride window and random crashes when trains have more than 144 cars. +- Fix: [#17080] “Remove litter” cheat does not empty litter bins. - Improved: [#17050] Transparency can be enabled directly without needing see-through enabled first. - Removed: [#16864] Title sequence editor (replaced by plug-in). diff --git a/src/openrct2/actions/SetCheatAction.cpp b/src/openrct2/actions/SetCheatAction.cpp index c55aefec05..5b9d84bd2d 100644 --- a/src/openrct2/actions/SetCheatAction.cpp +++ b/src/openrct2/actions/SetCheatAction.cpp @@ -426,7 +426,7 @@ void SetCheatAction::RemoveLitter() const continue; auto* path = it.element->AsPath(); - if (path->HasAddition()) + if (!path->HasAddition()) continue; auto* pathBitEntry = path->GetAdditionEntry();