From 71a8eee5c652b87b5e52c4f10e6c841bcf8987f2 Mon Sep 17 00:00:00 2001 From: Stephan Spengler Date: Thu, 6 Jun 2024 12:01:51 +0200 Subject: [PATCH] Fix #21987: API cannot handle negative removal prices --- distribution/changelog.txt | 1 + src/openrct2/scripting/bindings/object/ScObject.hpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index d716c6293c..f9e0c5559a 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -30,6 +30,7 @@ - Fix: [#13294] Map corners are cut off in some directions (original bug). - Fix: [#14630] Non-ASCII thousands and decimal separators not processed correctly. - Fix: [#21974] No reason specified when attempting to place benches, lamps, or bins on path with no unconnected edges (original bug). +- Fix: [#21987] [Plugin] API cannot handle negative removal prices. - Fix: [#22008] Uninverted Lay-down roller coaster uses the wrong support type. - Fix: [#22012] [Plugin] Images on ImgButton widgets cannot be updated. - Fix: [#22121] Some news items in the “Recent Messages” window have the wrong text colour. diff --git a/src/openrct2/scripting/bindings/object/ScObject.hpp b/src/openrct2/scripting/bindings/object/ScObject.hpp index 89e439cab4..688cf5bc68 100644 --- a/src/openrct2/scripting/bindings/object/ScObject.hpp +++ b/src/openrct2/scripting/bindings/object/ScObject.hpp @@ -864,7 +864,7 @@ namespace OpenRCT2::Scripting return 0; } - uint8_t price_get() const + money64 price_get() const { auto sceneryEntry = GetLegacyData(); if (sceneryEntry != nullptr) @@ -874,7 +874,7 @@ namespace OpenRCT2::Scripting return 0; } - uint8_t removalPrice_get() const + money64 removalPrice_get() const { auto sceneryEntry = GetLegacyData(); if (sceneryEntry != nullptr)